We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d2c380 commit dc60c06Copy full SHA for dc60c06
tests/sdk/utils.ts
@@ -10,14 +10,10 @@ const DATA_DIR = __dirname + '/data/';
10
export class TestCache implements FlagsmithCache {
11
cache: Record<string, Flags> = {};
12
13
- async get(name: string): Promise<Flags> {
+ async get(name: string): Promise<Flags | undefined> {
14
return this.cache[name];
15
}
16
17
- async has(name: string): Promise<boolean> {
18
- return !!this.cache[name];
19
- }
20
-
21
async set(name: string, value: Flags) {
22
this.cache[name] = value;
23
0 commit comments