Skip to content

Commit

Permalink
Test polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilianoSanchez committed Dec 4, 2024
1 parent 2275362 commit 11ee45f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/__tests__/nodeSuites/lazy-init.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ export default function (settings, fetchMock, t) {
fetchMock.postOnce('https://not-called/api/testImpressions/bulk', 200);
fetchMock.postOnce('https://not-called/api/events/bulk', 200);

// Validate that init and destroy are idempotent
for (let i = 0; i < 3; i++) { splitio.init(); splitio.init(); splitio.destroy(); splitio.destroy(); }

splitio.init();
await splitio.client().ready();
assert.true(splitio.client().__getStatus().isReady, 'Split SDK is ready');
Expand Down Expand Up @@ -80,7 +82,9 @@ export default function (settings, fetchMock, t) {
fetchMock.postOnce('https://not-called/api/testImpressions/bulk', 200);
fetchMock.postOnce('https://not-called/api/events/bulk', 200);

// Validate that init and destroy are idempotent
for (let i = 0; i < 3; i++) { splitio.init(); splitio.init(); splitio.destroy(); splitio.destroy(); }

splitio.init();
await splitio.client().ready();
assert.true(splitio.client().__getStatus().isReady, 'Split SDK is ready');
Expand Down

0 comments on commit 11ee45f

Please sign in to comment.