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
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -588,7 +588,7 @@ export default function (fetchMock, assert) {
588
588
fetchMock.getOnce(testUrls.sdk+'/splitChanges?s=1.1&since=25&names=p2__split&prefixes=p1',{status: 200,body: {splits: [splitDeclarations.p1__split,splitDeclarations.p2__split],since: 25,till: 1457552620999}},{delay: 10});// short delay to let emit SDK_READY_FROM_CACHE
@@ -639,7 +639,7 @@ export default function (fetchMock, assert) {
639
639
fetchMock.getOnce(testUrls.sdk+'/splitChanges?s=1.1&since=-1&prefixes=p1,p2',{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
@@ -788,7 +788,7 @@ export default function (fetchMock, assert) {
788
788
t.equal(localStorage.getItem('readyFromCache_9.SPLITIO.splits.till'),'1457552620999','splits.till must correspond to the till of the last successfully fetched Splits');
789
789
t.equal(localStorage.getItem('readyFromCache_9.SPLITIO.split.p2__split'),JSON.stringify(splitDeclarations.p2__split),'feature flag declarations must be cached');
790
790
t.equal(localStorage.getItem('readyFromCache_9.SPLITIO.split.p3__split'),JSON.stringify(splitDeclarations.p3__split),'feature flag declarations must be cached');
791
-
t.equal(localStorage.getItem('readyFromCache_9.SPLITIO.hash'),getStorageHash({ ...baseConfig,sync: {__splitFiltersValidation: {queryString: '&names=no%20exist%20trim,no_exist,p3__split&prefixes=no%20exist%20trim,p2'}}}),'Storage hash must correspond to the split filter query and SDK key');
791
+
t.equal(localStorage.getItem('readyFromCache_9.SPLITIO.hash'),getStorageHash({ ...baseConfig,sync: {__splitFiltersValidation: {queryString: '&names=no%20exist%20trim,no_exist,p3__split&prefixes=no%20exist%20trim,p2'},flagSpecVersion: '1.1'}}),'Storage hash must correspond to the split filter query and SDK key');
0 commit comments