1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 11:46:13 +02:00
metamask-extension/ui/app/components/gas-customization/gas-price-chart/tests/gas-price-chart.component.test.js
2018-12-04 00:06:05 -03:30

26 lines
664 B
JavaScript

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')
})
})
})