Skip to content

Commit 4e60f78

Browse files
committed
Run prettier
1 parent aecd0a2 commit 4e60f78

File tree

3 files changed

+184
-139
lines changed

3 files changed

+184
-139
lines changed

lib/index.js

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,12 @@ function plugin(analytics) {
117117
} else {
118118
assert(
119119
!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+
)
121126
);
122127
}
123128

@@ -251,10 +256,13 @@ function plugin(analytics) {
251256
fmt('The integration does not have an option named "%s".', key)
252257
);
253258
assert.deepEqual(
254-
aDefaults[key], bDefaults[key],
259+
aDefaults[key],
260+
bDefaults[key],
255261
fmt(
256262
'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]
258266
)
259267
);
260268
}
@@ -295,9 +303,15 @@ function plugin(analytics) {
295303
* @param {Function} done
296304
*/
297305
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+
);
299310
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+
);
301315
done();
302316
});
303317
analytics.initialize();

0 commit comments

Comments
 (0)