aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/gas-customization/gas-price-chart/tests/gas-price-chart.component.test.js
blob: 1a0f6760e5c589cab0c3b7df35f4340ed842c435 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import React from 'react'
import assert from 'assert'
import shallow from '../../../../../lib/shallow-with-context'
import GasPriceChart from '../gas-price-chart.component.js'

describe('GasPriceChart Component', function () {
  let wrapper

  beforeEach(() => {
    wrapper = shallow(<GasPriceChart />)
  })

  describe('render()', () => {
    it('should render', () => {
      console.log('wrapper', wrapper.html())
      assert(wrapper.hasClass('gas-price-chart'))
    })

    it('should render the chart div', () => {
      assert(wrapper.childAt(0).hasClass('gas-price-chart__root'))
      assert.equal(wrapper.childAt(0).props().id, 'chart')
    })
  })

})