@@ -50,39 +50,39 @@ describe('useFields hook', () => {
5050 { wrapper, initialProps : 'cardinality' }
5151 ) ;
5252 result . current ( ) ;
53- expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ ] , _range :timeRange } ) ;
53+ expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ ] , range :timeRange } ) ;
5454
5555 // All other metric aggregations only work on numbers
5656 rerender ( 'avg' ) ;
5757 result . current ( ) ;
58- expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ 'number' ] , _range :timeRange } ) ;
58+ expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ 'number' ] , range :timeRange } ) ;
5959
6060 //
6161 // BUCKET AGGREGATIONS
6262 //
6363 // Date Histrogram only works on dates
6464 rerender ( 'date_histogram' ) ;
6565 result . current ( ) ;
66- expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ 'date' ] , _range :timeRange } ) ;
66+ expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ 'date' ] , range :timeRange } ) ;
6767
6868 // Histrogram only works on numbers
6969 rerender ( 'histogram' ) ;
7070 result . current ( ) ;
71- expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ 'number' ] , _range :timeRange } ) ;
71+ expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ 'number' ] , range :timeRange } ) ;
7272
7373 // Geohash Grid only works on geo_point data
7474 rerender ( 'geohash_grid' ) ;
7575 result . current ( ) ;
76- expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ 'geo_point' ] , _range :timeRange } ) ;
76+ expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ 'geo_point' ] , range :timeRange } ) ;
7777
7878 // All other bucket aggregation work on any kind of data
7979 rerender ( 'terms' ) ;
8080 result . current ( ) ;
81- expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ ] , _range :timeRange } ) ;
81+ expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ ] , range :timeRange } ) ;
8282
8383 // top_metrics work on only on numeric data in 7.7
8484 rerender ( 'top_metrics' ) ;
8585 result . current ( ) ;
86- expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ 'number' ] , _range :timeRange } ) ;
86+ expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ 'number' ] , range :timeRange } ) ;
8787 } ) ;
8888} ) ;
0 commit comments