You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/__tests__/browserSuites/ready-from-cache.spec.js
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -473,7 +473,7 @@ export default function (fetchMock, assert) {
473
473
events: 'https://events.baseurl/readyFromCache_5'
474
474
};
475
475
localStorage.clear();
476
-
t.plan(7);
476
+
t.plan(6);
477
477
478
478
fetchMock.getOnce(testUrls.sdk+'/splitChanges?since=-1&names=p1__split,p2__split',{status: 200,body: {splits: [splitDeclarations.p1__split,splitDeclarations.p2__split],since: -1,till: 1457552620999}},{delay: 10});// short delay to let emit SDK_READY_FROM_CACHE
t.deepEqual(manager.names(),['p2__split'],'stored p3__split must be removed because doesn\'t match the filter');
502
+
t.fail('It should not emit SDK_READY_FROM_CACHE if cache is empty.');
503
+
t.end();
503
504
});
504
505
505
506
client.once(client.Event.SDK_READY,()=>{
@@ -731,7 +732,7 @@ export default function (fetchMock, assert) {
731
732
events: 'https://events.baseurl/readyFromCache_9'
732
733
};
733
734
localStorage.clear();
734
-
t.plan(7);
735
+
t.plan(6);
735
736
736
737
fetchMock.getOnce(testUrls.sdk+'/splitChanges?since=-1&names=no%20exist%20trim,no_exist,p3__split&prefixes=no%20exist%20trim,p2',{status: 200,body: {splits: [splitDeclarations.p2__split,splitDeclarations.p3__split],since: -1,till: 1457552620999}},{delay: 10});// short delay to let emit SDK_READY_FROM_CACHE
0 commit comments