Skip to content

Commit

Permalink
fix tests / 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
vinikjkkj committed Dec 22, 2024
1 parent cc5fb22 commit 49f266d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cachetools-js",
"version": "1.0.3",
"version": "1.0.4",
"description": "Best, faster, ligther, all-in-one, fully-typed cache library for JS, based on cachetools from python, with events, pooling and decorators.",
"author": "vinikjkkj",
"license": "MIT",
Expand All @@ -12,8 +12,7 @@
"prepare": "tsc",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"test": "jest --detectOpenHandles",
"publish": "npm run build && npm publish"
"test": "jest --detectOpenHandles"
},
"devDependencies": {
"@types/jest": "^29.5.12",
Expand Down
4 changes: 2 additions & 2 deletions tests/ttl.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('TTLCache', () => {
expect(cache.get('key')).toBeUndefined()
done()
}, 20)
})
}, 50)

test('should throw SizeError when exceeding maxsize', () => {
cache.set('key', 'value')
Expand All @@ -64,7 +64,7 @@ describe('TTLCache', () => {
expect(cache.get('key')).toBeUndefined()
done()
}, 150)
})
}, 200)

test('should return keys and values', () => {
cache.set('key', 'value')
Expand Down

0 comments on commit 49f266d

Please sign in to comment.