fixed type error in test
Some checks failed
Build / Build NPM Project (push) Successful in 40s
Build / Publish Documentation (push) Failing after 5s
Build / Tag Version (push) Successful in 9s

This commit is contained in:
2025-07-06 22:19:45 -04:00
parent 3e899e6ae4
commit a8b6fdd5a6

View File

@ -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();
});