We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a5641c commit 19f965bCopy full SHA for 19f965b
packages/node-cache/test/index.test.ts
@@ -286,7 +286,7 @@ describe('NodeCache', () => {
286
await sleep(1000);
287
expect(cache.getStats().keys).toBe(2);
288
expect(expiredKey).toBe('foo-expired');
289
- const expiredValue = cache.get('foo-expired') as string;
+ const expiredValue = cache.get<string>('foo-expired');
290
expect(expiredValue).toBe(undefined);
291
cache.close();
292
});
0 commit comments