Skip to content

Commit e1fbb91

Browse files
style: Fix prettier formatting in tests
1 parent 4ea1885 commit e1fbb91

1 file changed

Lines changed: 9 additions & 23 deletions

File tree

test/src/tests.js

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4382,9 +4382,7 @@ describe('Rokt Forwarder', () => {
43824382
{}
43834383
);
43844384

4385-
await waitForCondition(
4386-
() => window.mParticle.Rokt.attachKitCalled
4387-
);
4385+
await waitForCondition(() => window.mParticle.Rokt.attachKitCalled);
43884386

43894387
var testEvent = {
43904388
EventName: 'Test Event',
@@ -4407,17 +4405,15 @@ describe('Rokt Forwarder', () => {
44074405
{}
44084406
);
44094407

4410-
await waitForCondition(
4411-
() => window.mParticle.Rokt.attachKitCalled
4412-
);
4408+
await waitForCondition(() => window.mParticle.Rokt.attachKitCalled);
44134409

44144410
(function () {
44154411
window.mParticle.forwarder.process({
44164412
EventName: 'Test Event',
44174413
EventCategory: EventType.Other,
44184414
EventDataType: MessageType.PageEvent,
44194415
});
4420-
}.should.not.throw());
4416+
}).should.not.throw();
44214417
});
44224418

44234419
it('should not throw when window.Rokt is undefined', async () => {
@@ -4429,9 +4425,7 @@ describe('Rokt Forwarder', () => {
44294425
{}
44304426
);
44314427

4432-
await waitForCondition(
4433-
() => window.mParticle.Rokt.attachKitCalled
4434-
);
4428+
await waitForCondition(() => window.mParticle.Rokt.attachKitCalled);
44354429

44364430
var savedRokt = window.Rokt;
44374431
window.Rokt = undefined;
@@ -4442,7 +4436,7 @@ describe('Rokt Forwarder', () => {
44424436
EventCategory: EventType.Other,
44434437
EventDataType: MessageType.PageEvent,
44444438
});
4445-
}.should.not.throw());
4439+
}).should.not.throw();
44464440

44474441
window.Rokt = savedRokt;
44484442
});
@@ -4461,9 +4455,7 @@ describe('Rokt Forwarder', () => {
44614455
{}
44624456
);
44634457

4464-
await waitForCondition(
4465-
() => window.mParticle.Rokt.attachKitCalled
4466-
);
4458+
await waitForCondition(() => window.mParticle.Rokt.attachKitCalled);
44674459

44684460
var testEvent = {
44694461
EventName: 'Purchase',
@@ -4498,9 +4490,7 @@ describe('Rokt Forwarder', () => {
44984490
{}
44994491
);
45004492

4501-
await waitForCondition(
4502-
() => window.mParticle.Rokt.attachKitCalled
4503-
);
4493+
await waitForCondition(() => window.mParticle.Rokt.attachKitCalled);
45044494

45054495
window.mParticle.forwarder.process({
45064496
EventName: 'Event A',
@@ -4542,9 +4532,7 @@ describe('Rokt Forwarder', () => {
45424532
{}
45434533
);
45444534

4545-
await waitForCondition(
4546-
() => window.mParticle.Rokt.attachKitCalled
4547-
);
4535+
await waitForCondition(() => window.mParticle.Rokt.attachKitCalled);
45484536

45494537
receivedEvents.length.should.equal(1);
45504538
receivedEvents[0].EventName.should.equal('Queued Event');
@@ -4576,9 +4564,7 @@ describe('Rokt Forwarder', () => {
45764564
{}
45774565
);
45784566

4579-
await waitForCondition(
4580-
() => window.mParticle.Rokt.attachKitCalled
4581-
);
4567+
await waitForCondition(() => window.mParticle.Rokt.attachKitCalled);
45824568

45834569
window.mParticle.forwarder.process({
45844570
EventName: 'Video Watched',

0 commit comments

Comments
 (0)