From a8b6fdd5a6f647786230b07b76b7dc4b4b9f1fca Mon Sep 17 00:00:00 2001 From: ztimson Date: Sun, 6 Jul 2025 22:19:45 -0400 Subject: [PATCH] fixed type error in test --- tests/cache.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cache.spec.ts b/tests/cache.spec.ts index f960156..bd0f15b 100644 --- a/tests/cache.spec.ts +++ b/tests/cache.spec.ts @@ -123,7 +123,7 @@ describe('Cache', () => { // Edge: add error handling test it('throws if instantiating with invalid key property', () => { expect(() => { - const invalid = new Cache<'foo', TestItem>('foo'); + const invalid = new Cache<'string', TestItem>('id'); // try invalid.add({id: 'z', value: 'fail'}) if needed }).not.toThrow(); });