@@ -186,6 +186,8 @@ export default describeModule(
186
186
} ,
187
187
// args: msg, instantPush
188
188
telemetry : sinon . fake ( ) ,
189
+ // args: url, query
190
+ addStrictQueries : sinon . fake ( ) ,
189
191
queryCache : { } ,
190
192
patterns : new Patterns ( ) ,
191
193
checkURL : ( doc , url ) => {
@@ -237,11 +239,7 @@ export default describeModule(
237
239
238
240
it ( 'should not find any data' , function ( ) {
239
241
WDP . checkURL ( document , fixture . url ) ;
240
- expect ( WDP . telemetry . notCalled ) ;
241
- } ) ;
242
-
243
- it ( 'should not find any data' , function ( ) {
244
- WDP . checkURL ( document , fixture . url ) ;
242
+ expect ( WDP . addStrictQueries . notCalled ) ;
245
243
expect ( WDP . telemetry . notCalled ) ;
246
244
} ) ;
247
245
} ) ;
@@ -285,6 +283,7 @@ export default describeModule(
285
283
286
284
it ( "should not find any data" , function ( ) {
287
285
WDP . checkURL ( document , fixture . url ) ;
286
+ expect ( WDP . addStrictQueries . notCalled ) ;
288
287
expect ( WDP . telemetry . notCalled ) ;
289
288
} ) ;
290
289
} ) ;
@@ -296,11 +295,7 @@ export default describeModule(
296
295
297
296
it ( 'should find search results' , function ( ) {
298
297
WDP . checkURL ( document , fixture . url ) ;
299
- expect ( WDP . telemetry . notCalled ) ;
300
- } ) ;
301
-
302
- it ( 'should find search results' , function ( ) {
303
- WDP . checkURL ( document , fixture . url ) ;
298
+ expect ( WDP . addStrictQueries . called ) ;
304
299
expect ( WDP . telemetry . called ) ;
305
300
} ) ;
306
301
} ) ;
0 commit comments