Skip to content

Commit dc60c06

Browse files
committed
Use correct interface in tests
1 parent 8d2c380 commit dc60c06

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/sdk/utils.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,10 @@ const DATA_DIR = __dirname + '/data/';
1010
export class TestCache implements FlagsmithCache {
1111
cache: Record<string, Flags> = {};
1212

13-
async get(name: string): Promise<Flags> {
13+
async get(name: string): Promise<Flags | undefined> {
1414
return this.cache[name];
1515
}
1616

17-
async has(name: string): Promise<boolean> {
18-
return !!this.cache[name];
19-
}
20-
2117
async set(name: string, value: Flags) {
2218
this.cache[name] = value;
2319
}

0 commit comments

Comments
 (0)