Skip to content

Commit 19f965b

Browse files
committed
Update index.test.ts
1 parent 2a5641c commit 19f965b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/node-cache/test/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ describe('NodeCache', () => {
286286
await sleep(1000);
287287
expect(cache.getStats().keys).toBe(2);
288288
expect(expiredKey).toBe('foo-expired');
289-
const expiredValue = cache.get('foo-expired') as string;
289+
const expiredValue = cache.get<string>('foo-expired');
290290
expect(expiredValue).toBe(undefined);
291291
cache.close();
292292
});

0 commit comments

Comments
 (0)