File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
libs/providers/flagsmith-client/src/lib Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {
1111 exampleNumericFlagName ,
1212 exampleStringFlagName ,
1313 getFetchErrorMock ,
14+ CACHE_KEY ,
1415} from './flagsmith.mocks' ;
1516import { OpenFeature , ProviderEvents } from '@openfeature/web-sdk' ;
1617import { createFlagsmithInstance } from 'flagsmith' ;
@@ -23,8 +24,6 @@ const logger = {
2324 warn : jest . fn ( ) ,
2425} ;
2526
26- const CACHE_KEY = 'FLAGSMITH_CACHE_DB' ;
27-
2827describe ( 'FlagsmithProvider' , ( ) => {
2928 beforeEach ( async ( ) => {
3029 // Clear all instances and calls to constructor and all methods of mock logger
Original file line number Diff line number Diff line change @@ -156,10 +156,12 @@ export const defaultState = {
156156 environmentID : environmentID ,
157157} ;
158158
159+ export const CACHE_KEY = 'FLAGSMITH_CACHE_DB' ;
160+
159161export const cacheConfig = {
160162 cacheFlags : true ,
161163 cacheOptions : {
162164 ttl : 1000 ,
163- storageKey : 'FLAGSMITH_CACHE_DB' ,
165+ storageKey : CACHE_KEY ,
164166 } ,
165167} ;
You can’t perform that action at this time.
0 commit comments