We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b5ded0 commit d1c6d7aCopy full SHA for d1c6d7a
1 file changed
lib/cache.test.ts
@@ -409,11 +409,15 @@ describe('TTLCache', () => {
409
const matrix = [
410
[1, 2],
411
[3, 4],
412
+ [5, 6],
413
];
414
415
cache.set('matrix', matrix, 60_000);
416
- expect(cache.get('matrix')).toEqual(matrix);
417
+ const cached = cache.get('matrix');
418
+
419
+ expect(cached).toEqual(matrix);
420
+ expect(cached?.[2]?.[1]).toBe(6);
421
422
cache.destroy();
423
});
0 commit comments