Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Shan He <heshan0131@gmail.com>
  • Loading branch information
heshan0131 committed Feb 9, 2021
1 parent 0eae0b5 commit 4072a6a
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions test/browser/components/filters/time-widget-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,23 +245,8 @@ test('Components -> TimeWidget.mount -> test actions', t => {
.find('.field-selector_list-item')
.at(0)
.simulate('click');
t.deepEqual(
setFilterPlot.args[0],
[
0,
{
yAxis: {
type: 'real',
name: 'gps_data.lat',
format: '',
tableFieldIndex: 2,
analyzerType: 'FLOAT',
id: 'gps_data.lat'
}
}
],
'should call setFilterPlot'
);
t.equal(setFilterPlot.args[0][0], 0, 'should pass filteridx to setFilterPlot');
t.equal(setFilterPlot.args[0][1].yAxis.name, 'gps_data.lat', 'should pass correct yAxis to setFilterPlot');

// hit close
wrapper
Expand Down

0 comments on commit 4072a6a

Please sign in to comment.