Skip to content

Commit 24137dc

Browse files
fix test
1 parent 195b1b1 commit 24137dc

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/__tests__/browserSuites/readiness.spec.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,8 @@ export default function (fetchMock, assert) {
402402
});
403403
const CLIENTS_COUNT = 3; // Just so it's easier to read the assertions.
404404
const client = splitio.client();
405-
const client2 = splitio.client('nicolas2@split.io');
406-
const client3 = splitio.client('nicolas3@split.io');
405+
splitio.client('nicolas2@split.io');
406+
splitio.client('nicolas3@split.io');
407407

408408
client.once(client.Event.SDK_READY, () => {
409409
t.ok(Date.now() - start >= membershipsEndpointDelay, 'It should not be ready without waiting for memberships, as there are segments in the first splits payload.');
@@ -466,8 +466,8 @@ export default function (fetchMock, assert) {
466466
});
467467
const CLIENTS_COUNT = 3; // Just so it's easier to read the assertions.
468468
const client = splitio.client();
469-
const client2 = splitio.client('nicolas2@split.io');
470-
const client3 = splitio.client('nicolas3@split.io');
469+
splitio.client('nicolas2@split.io');
470+
splitio.client('nicolas3@split.io');
471471

472472
client.once(client.Event.SDK_READY, () => {
473473
t.ok(Date.now() - start >= membershipsEndpointDelay, 'It should not be ready without waiting for memberships, when we start from cache it might be stale.');
@@ -509,8 +509,8 @@ export default function (fetchMock, assert) {
509509
});
510510
const CLIENTS_COUNT = 3; // Just so it's easier to read the assertions.
511511
const client = splitio.client();
512-
const client2 = splitio.client('nicolas2@split.io');
513-
const client3 = splitio.client('nicolas3@split.io');
512+
splitio.client('nicolas2@split.io');
513+
splitio.client('nicolas3@split.io');
514514

515515
client.once(client.Event.SDK_READY, () => {
516516
t.ok(Date.now() - start < 50, 'It should be ready quickly, since it had no segments and update has no segments either.');
@@ -556,8 +556,8 @@ export default function (fetchMock, assert) {
556556
});
557557
const CLIENTS_COUNT = 3; // Just so it's easier to read the assertions.
558558
const client = splitio.client();
559-
const client2 = splitio.client('nicolas2@split.io');
560-
const client3 = splitio.client('nicolas3@split.io');
559+
splitio.client('nicolas2@split.io');
560+
splitio.client('nicolas3@split.io');
561561

562562
client.once(client.Event.SDK_READY, () => {
563563
const delay = Date.now() - start;
@@ -599,8 +599,8 @@ export default function (fetchMock, assert) {
599599
});
600600
const CLIENTS_COUNT = 3; // Just so it's easier to read the assertions.
601601
const client = splitio.client();
602-
const client2 = splitio.client('nicolas2@split.io');
603-
const client3 = splitio.client('nicolas3@split.io');
602+
splitio.client('nicolas2@split.io');
603+
splitio.client('nicolas3@split.io');
604604

605605
client.once(client.Event.SDK_READY, () => {
606606
t.ok(Date.now() - start >= membershipsEndpointDelay, 'It should not be ready without waiting for memberships, when we start from cache it might be stale and we had segments even though the update has nothing.');
@@ -645,8 +645,8 @@ export default function (fetchMock, assert) {
645645
});
646646
const CLIENTS_COUNT = 3; // Just so it's easier to read the assertions.
647647
const client = splitio.client();
648-
const client2 = splitio.client('nicolas2@split.io');
649-
const client3 = splitio.client('nicolas3@split.io');
648+
splitio.client('nicolas2@split.io');
649+
splitio.client('nicolas3@split.io');
650650

651651
client.once(client.Event.SDK_READY, () => {
652652
t.ok(Date.now() - start < 50, 'It should be ready without waiting for memberships, since when it downloads changes it will have no more use for them.');

0 commit comments

Comments
 (0)