@@ -99,7 +99,7 @@ describe('filter_runtime_mappings', () => {
9999 datafeed = getDatafeed ( ) ;
100100 } ) ;
101101
102- test ( 'returns no runtime mappings, no mappings in aggs' , async ( ) => {
102+ test ( 'returns no runtime mappings, no mappings in aggs' , ( ) => {
103103 const resp = filterRuntimeMappings ( job , datafeed ) ;
104104 expect ( Object . keys ( resp . runtime_mappings ) . length ) . toEqual ( 0 ) ;
105105
@@ -108,7 +108,7 @@ describe('filter_runtime_mappings', () => {
108108 expect ( resp . discarded_mappings . airline_lower ) . not . toEqual ( undefined ) ;
109109 } ) ;
110110
111- test ( 'returns no runtime mappings, no runtime mappings in datafeed' , async ( ) => {
111+ test ( 'returns no runtime mappings, no runtime mappings in datafeed' , ( ) => {
112112 datafeed . runtime_mappings = undefined ;
113113 const resp = filterRuntimeMappings ( job , datafeed ) ;
114114 expect ( Object . keys ( resp . runtime_mappings ) . length ) . toEqual ( 0 ) ;
@@ -118,7 +118,7 @@ describe('filter_runtime_mappings', () => {
118118 expect ( resp . discarded_mappings . airline_lower ) . toEqual ( undefined ) ;
119119 } ) ;
120120
121- test ( 'return one runtime mapping and one unused mapping, mappings in aggs' , async ( ) => {
121+ test ( 'return one runtime mapping and one unused mapping, mappings in aggs' , ( ) => {
122122 datafeed . aggregations = getAggs ( ) ;
123123 const resp = filterRuntimeMappings ( job , datafeed ) ;
124124 expect ( Object . keys ( resp . runtime_mappings ) . length ) . toEqual ( 1 ) ;
@@ -128,7 +128,7 @@ describe('filter_runtime_mappings', () => {
128128 expect ( resp . discarded_mappings . airline_lower ) . not . toEqual ( undefined ) ;
129129 } ) ;
130130
131- test ( 'return no runtime mappings, no mappings in aggs' , async ( ) => {
131+ test ( 'return no runtime mappings, no mappings in aggs' , ( ) => {
132132 datafeed . aggregations = getAggs ( ) ;
133133 datafeed . aggregations ! . buckets ! . aggregations ! . responsetime ! . avg ! . field ! = 'responsetime' ;
134134
@@ -140,7 +140,7 @@ describe('filter_runtime_mappings', () => {
140140 expect ( resp . discarded_mappings . airline_lower ) . not . toEqual ( undefined ) ;
141141 } ) ;
142142
143- test ( 'return one runtime mapping and one unused mapping, no mappings in aggs' , async ( ) => {
143+ test ( 'return one runtime mapping and one unused mapping, no mappings in aggs' , ( ) => {
144144 // set the detector field to be a runtime mapping
145145 job . analysis_config . detectors [ 0 ] . field_name = 'responsetime_big' ;
146146 const resp = filterRuntimeMappings ( job , datafeed ) ;
@@ -151,7 +151,7 @@ describe('filter_runtime_mappings', () => {
151151 expect ( resp . discarded_mappings . airline_lower ) . not . toEqual ( undefined ) ;
152152 } ) ;
153153
154- test ( 'return two runtime mappings, no mappings in aggs' , async ( ) => {
154+ test ( 'return two runtime mappings, no mappings in aggs' , ( ) => {
155155 // set the detector field to be a runtime mapping
156156 job . analysis_config . detectors [ 0 ] . field_name = 'responsetime_big' ;
157157 // set the detector by field to be a runtime mapping
@@ -164,7 +164,7 @@ describe('filter_runtime_mappings', () => {
164164 expect ( Object . keys ( resp . discarded_mappings ) . length ) . toEqual ( 0 ) ;
165165 } ) ;
166166
167- test ( 'return two runtime mappings, no mappings in aggs, categorization job' , async ( ) => {
167+ test ( 'return two runtime mappings, no mappings in aggs, categorization job' , ( ) => {
168168 job . analysis_config . detectors [ 0 ] . function = 'count' ;
169169 // set the detector field to be a runtime mapping
170170 job . analysis_config . detectors [ 0 ] . field_name = undefined ;
0 commit comments