@@ -7,7 +7,7 @@ import { fullSettings } from '../../../utils/settingsValidation/__tests__/settin
77
88test ( 'SPLIT CACHE / LocalStorage' , ( ) => {
99 const cache = new SplitsCacheInLocal ( fullSettings , new KeyBuilderCS ( 'SPLITIO' , 'user' ) ) ;
10- cache . validateCache ( ) ;
10+ cache . validateCache ( fullSettings ) ;
1111
1212 cache . clear ( ) ;
1313
@@ -41,7 +41,7 @@ test('SPLIT CACHE / LocalStorage', () => {
4141
4242test ( 'SPLIT CACHE / LocalStorage / Get Keys' , ( ) => {
4343 const cache = new SplitsCacheInLocal ( fullSettings , new KeyBuilderCS ( 'SPLITIO' , 'user' ) ) ;
44- cache . validateCache ( ) ;
44+ cache . validateCache ( fullSettings ) ;
4545
4646 cache . addSplit ( 'lol1' , something ) ;
4747 cache . addSplit ( 'lol2' , somethingElse ) ;
@@ -54,7 +54,7 @@ test('SPLIT CACHE / LocalStorage / Get Keys', () => {
5454
5555test ( 'SPLIT CACHE / LocalStorage / Add Splits' , ( ) => {
5656 const cache = new SplitsCacheInLocal ( fullSettings , new KeyBuilderCS ( 'SPLITIO' , 'user' ) ) ;
57- cache . validateCache ( ) ;
57+ cache . validateCache ( fullSettings ) ;
5858
5959 cache . addSplits ( [
6060 [ 'lol1' , something ] ,
@@ -69,7 +69,7 @@ test('SPLIT CACHE / LocalStorage / Add Splits', () => {
6969
7070test ( 'SPLIT CACHE / LocalStorage / trafficTypeExists and ttcache tests' , ( ) => {
7171 const cache = new SplitsCacheInLocal ( fullSettings , new KeyBuilderCS ( 'SPLITIO' , 'user' ) ) ;
72- cache . validateCache ( ) ;
72+ cache . validateCache ( fullSettings ) ;
7373
7474 cache . addSplits ( [ // loop of addSplit
7575 [ 'split1' , splitWithUserTT ] ,
@@ -108,7 +108,7 @@ test('SPLIT CACHE / LocalStorage / trafficTypeExists and ttcache tests', () => {
108108
109109test ( 'SPLIT CACHE / LocalStorage / killLocally' , ( ) => {
110110 const cache = new SplitsCacheInLocal ( fullSettings , new KeyBuilderCS ( 'SPLITIO' , 'user' ) ) ;
111- cache . validateCache ( ) ;
111+ cache . validateCache ( fullSettings ) ;
112112
113113 cache . addSplit ( 'lol1' , something ) ;
114114 cache . addSplit ( 'lol2' , somethingElse ) ;
@@ -142,7 +142,7 @@ test('SPLIT CACHE / LocalStorage / killLocally', () => {
142142
143143test ( 'SPLIT CACHE / LocalStorage / usesSegments' , ( ) => {
144144 const cache = new SplitsCacheInLocal ( fullSettings , new KeyBuilderCS ( 'SPLITIO' , 'user' ) ) ;
145- cache . validateCache ( ) ;
145+ cache . validateCache ( fullSettings ) ;
146146
147147 expect ( cache . usesSegments ( ) ) . toBe ( true ) ; // true initially, until data is synchronized
148148 cache . setChangeNumber ( 1 ) ; // to indicate that data has been synced.
@@ -174,7 +174,7 @@ test('SPLIT CACHE / LocalStorage / flag set cache tests', () => {
174174 }
175175 }
176176 } , new KeyBuilderCS ( 'SPLITIO' , 'user' ) ) ;
177- cache . validateCache ( ) ;
177+ cache . validateCache ( fullSettings ) ;
178178
179179 const emptySet = new Set ( [ ] ) ;
180180
@@ -216,7 +216,7 @@ test('SPLIT CACHE / LocalStorage / flag set cache tests', () => {
216216// if FlagSets are not defined, it should store all FlagSets in memory.
217217test ( 'SPLIT CACHE / LocalStorage / flag set cache tests without filters' , ( ) => {
218218 const cache = new SplitsCacheInLocal ( fullSettings , new KeyBuilderCS ( 'SPLITIO' , 'user' ) ) ;
219- cache . validateCache ( ) ;
219+ cache . validateCache ( fullSettings ) ;
220220
221221 const emptySet = new Set ( [ ] ) ;
222222
0 commit comments