@@ -50,39 +50,39 @@ describe('useFields hook', () => {
50
50
{ wrapper, initialProps : 'cardinality' }
51
51
) ;
52
52
result . current ( ) ;
53
- expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ ] , _range :timeRange } ) ;
53
+ expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ ] , range :timeRange } ) ;
54
54
55
55
// All other metric aggregations only work on numbers
56
56
rerender ( 'avg' ) ;
57
57
result . current ( ) ;
58
- expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ 'number' ] , _range :timeRange } ) ;
58
+ expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ 'number' ] , range :timeRange } ) ;
59
59
60
60
//
61
61
// BUCKET AGGREGATIONS
62
62
//
63
63
// Date Histrogram only works on dates
64
64
rerender ( 'date_histogram' ) ;
65
65
result . current ( ) ;
66
- expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ 'date' ] , _range :timeRange } ) ;
66
+ expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ 'date' ] , range :timeRange } ) ;
67
67
68
68
// Histrogram only works on numbers
69
69
rerender ( 'histogram' ) ;
70
70
result . current ( ) ;
71
- expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ 'number' ] , _range :timeRange } ) ;
71
+ expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ 'number' ] , range :timeRange } ) ;
72
72
73
73
// Geohash Grid only works on geo_point data
74
74
rerender ( 'geohash_grid' ) ;
75
75
result . current ( ) ;
76
- expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ 'geo_point' ] , _range :timeRange } ) ;
76
+ expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ 'geo_point' ] , range :timeRange } ) ;
77
77
78
78
// All other bucket aggregation work on any kind of data
79
79
rerender ( 'terms' ) ;
80
80
result . current ( ) ;
81
- expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ ] , _range :timeRange } ) ;
81
+ expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ ] , range :timeRange } ) ;
82
82
83
83
// top_metrics work on only on numeric data in 7.7
84
84
rerender ( 'top_metrics' ) ;
85
85
result . current ( ) ;
86
- expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ 'number' ] , _range :timeRange } ) ;
86
+ expect ( getFields ) . toHaveBeenLastCalledWith ( { aggregatable :true , type :[ 'number' ] , range :timeRange } ) ;
87
87
} ) ;
88
88
} ) ;
0 commit comments