Skip to content

Commit 833ba1d

Browse files
Fix test
1 parent aafd396 commit 833ba1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/__tests__/browserSuites/ready-from-cache.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ export default function (fetchMock, assert) {
822822
});
823823

824824
await client.ready();
825-
t.equal(manager.names().sort().length, 32, 'active splits should be present for evaluation');
825+
t.equal(manager.names().sort().length, 33, 'active splits should be present for evaluation');
826826

827827
await splitio.destroy();
828828
t.equal(localStorage.getItem('readyFromCache_10.SPLITIO.splits.till'), '1457552620999', 'splits.till must correspond to the till of the last successfully fetched Splits');
@@ -839,7 +839,7 @@ export default function (fetchMock, assert) {
839839

840840
await new Promise(res => client.once(client.Event.SDK_READY_FROM_CACHE, res));
841841

842-
t.equal(manager.names().sort().length, 32, 'active splits should be present for evaluation');
842+
t.equal(manager.names().sort().length, 33, 'active splits should be present for evaluation');
843843
t.false(console.log.calledWithMatch('clearOnInit was set and cache was not cleared in the last 24 hours. Cleaning up cache'), 'It should log a message about cleaning up cache');
844844

845845
await splitio.destroy();
@@ -860,7 +860,7 @@ export default function (fetchMock, assert) {
860860

861861
await new Promise(res => client.once(client.Event.SDK_READY, res));
862862

863-
t.equal(manager.names().sort().length, 32, 'active splits should be present for evaluation');
863+
t.equal(manager.names().sort().length, 33, 'active splits should be present for evaluation');
864864
t.true(console.log.calledWithMatch('clearOnInit was set and cache was not cleared in the last 24 hours. Cleaning up cache'), 'It should log a message about cleaning up cache');
865865

866866
await splitio.destroy();

0 commit comments

Comments
 (0)