From 49f266d2c125fb5221015d67ed02318aedffba5c Mon Sep 17 00:00:00 2001 From: vinikjkkj Date: Sat, 21 Dec 2024 23:59:03 -0300 Subject: [PATCH] fix tests / 1.0.4 --- package.json | 5 ++--- tests/ttl.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index d419adb..1add3b0 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/tests/ttl.test.ts b/tests/ttl.test.ts index d7496ab..4081cc2 100644 --- a/tests/ttl.test.ts +++ b/tests/ttl.test.ts @@ -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') @@ -64,7 +64,7 @@ describe('TTLCache', () => { expect(cache.get('key')).toBeUndefined() done() }, 150) - }) + }, 200) test('should return keys and values', () => { cache.set('key', 'value')