Remove HistogramChart loading test
parent
5dd96d6b6b
commit
1d8d294f05
|
@ -1,5 +1,5 @@
|
|||
import React from 'react'
|
||||
import {mount, shallow} from 'enzyme'
|
||||
import {mount} from 'enzyme'
|
||||
|
||||
import HistogramChart from 'src/shared/components/HistogramChart'
|
||||
import HistogramChartTooltip from 'src/shared/components/HistogramChartTooltip'
|
||||
|
@ -89,19 +89,4 @@ describe('HistogramChart', () => {
|
|||
|
||||
expect(tooltip).toMatchSnapshot()
|
||||
})
|
||||
|
||||
test('has a "loading" class if data is reloading', () => {
|
||||
const props = {
|
||||
data: [{key: '', time: 0, value: 0, group: ''}],
|
||||
dataStatus: RemoteDataState.Loading,
|
||||
width: 600,
|
||||
height: 400,
|
||||
colorScale: () => 'blue',
|
||||
onZoom: () => {},
|
||||
}
|
||||
|
||||
const wrapper = shallow(<HistogramChart {...props} />)
|
||||
|
||||
expect(wrapper.find('.histogram-chart').hasClass('loading')).toBe(true)
|
||||
})
|
||||
})
|
||||
|
|
|
@ -174,7 +174,7 @@ exports[`HistogramChart displays the visualization with bars if nonempty data is
|
|||
width={600}
|
||||
>
|
||||
<svg
|
||||
className="histogram-chart "
|
||||
className="histogram-chart"
|
||||
height={400}
|
||||
width={600}
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue