@@ -117,7 +117,12 @@ function plugin(analytics) {
117
117
} else {
118
118
assert (
119
119
! spy . got . apply ( spy , args ) ,
120
- fmt ( 'Expected "%s" not to be called with "%o", but it was called with "%o".' , spy . name , args , spy . args [ 0 ] )
120
+ fmt (
121
+ 'Expected "%s" not to be called with "%o", but it was called with "%o".' ,
122
+ spy . name ,
123
+ args ,
124
+ spy . args [ 0 ]
125
+ )
121
126
) ;
122
127
}
123
128
@@ -251,10 +256,13 @@ function plugin(analytics) {
251
256
fmt ( 'The integration does not have an option named "%s".' , key )
252
257
) ;
253
258
assert . deepEqual (
254
- aDefaults [ key ] , bDefaults [ key ] ,
259
+ aDefaults [ key ] ,
260
+ bDefaults [ key ] ,
255
261
fmt (
256
262
'Expected option "%s" to default to "%s", but it defaults to "%s".' ,
257
- key , bDefaults [ key ] , aDefaults [ key ]
263
+ key ,
264
+ bDefaults [ key ] ,
265
+ aDefaults [ key ]
258
266
)
259
267
) ;
260
268
}
@@ -295,9 +303,15 @@ function plugin(analytics) {
295
303
* @param {Function } done
296
304
*/
297
305
analytics . load = function ( integration , done ) {
298
- analytics . assert ( ! integration . loaded ( ) , 'Expected `integration.loaded()` to be false before loading.' ) ;
306
+ analytics . assert (
307
+ ! integration . loaded ( ) ,
308
+ 'Expected `integration.loaded()` to be false before loading.'
309
+ ) ;
299
310
analytics . once ( 'ready' , function ( ) {
300
- analytics . assert ( integration . loaded ( ) , 'Expected `integration.loaded()` to be true after loading.' ) ;
311
+ analytics . assert (
312
+ integration . loaded ( ) ,
313
+ 'Expected `integration.loaded()` to be true after loading.'
314
+ ) ;
301
315
done ( ) ;
302
316
} ) ;
303
317
analytics . initialize ( ) ;
0 commit comments