diff options
author | Cashew <52880648+Scrub1492@users.noreply.github.com> | 2023-12-29 12:05:11 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-29 05:05:11 +0000 |
commit | 59961b6eeb46a93aa2db587a047e6da79b2dceda (patch) | |
tree | 5af665c98909edba4cf5a436679f225f4200f3de /test | |
parent | 088625266852bf1f86e3f6bc788f85356dafcd5d (diff) |
remove redundancy in cache-map (#485)
* remove redundancy
* fix lint
Diffstat (limited to 'test')
-rw-r--r-- | test/cache-map.test.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/cache-map.test.js b/test/cache-map.test.js index 52ada57c..9db30677 100644 --- a/test/cache-map.test.js +++ b/test/cache-map.test.js @@ -31,9 +31,7 @@ function testConstructor() { [true, () => new CacheMap(-1)], [true, () => new CacheMap(1.5)], [true, () => new CacheMap(Number.NaN)], - [true, () => new CacheMap(Number.POSITIVE_INFINITY)], - // @ts-expect-error - Ignore because it should throw an error - [true, () => new CacheMap('a')] + [true, () => new CacheMap(Number.POSITIVE_INFINITY)] ]; for (const [throws, create] of data) { |