diff --git a/package.json b/package.json index f43276f..b4ac1dd 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "scripts": { "test": "NODE_ENV=test jest --coverage", "test-ci": "NODE_ENV=test jest --coverage --ci --runInBand", - "test-suite": "ava test-suite.js", + "test-suite": "ava test-suite-*.js", "commitmsg": "commitlint -e $GIT_PARAMS", "precommit": "lint-staged && yarn flow", "emdaer": "emdaer --yes && git add *.md", diff --git a/src/index.js b/src/index.js index c7d691f..86b4e5b 100644 --- a/src/index.js +++ b/src/index.js @@ -1,6 +1,6 @@ // @flow const KeyvLru = require('./KeyvLru'); -const KeyvNullManagedTtl = require('./KeyvLruManagedTtl'); +const KeyvLruManagedTtl = require('./KeyvLruManagedTtl'); -module.exports = { KeyvLru, KeyvNullManagedTtl }; +module.exports = { KeyvLru, KeyvLruManagedTtl }; diff --git a/test-suite-managed-ttl.js b/test-suite-managed-ttl.js new file mode 100644 index 0000000..446254e --- /dev/null +++ b/test-suite-managed-ttl.js @@ -0,0 +1,7 @@ +const testSuite = require('ava'); +const keyvTestSuite = require('@keyv/test-suite').default; +const Keyv = require('keyv'); +const { KeyvLruManagedTtl } = require('./lib'); + +const store = () => new KeyvLruManagedTtl(1000); +keyvTestSuite(testSuite, Keyv, store); diff --git a/test-suite.js b/test-suite.js index 32ae5be..75c6301 100644 --- a/test-suite.js +++ b/test-suite.js @@ -1,7 +1,7 @@ const testSuite = require('ava'); const keyvTestSuite = require('@keyv/test-suite').default; const Keyv = require('keyv'); -const KeyvStore = require('./lib'); +const { KeyvLru } = require('./lib'); -const store = () => new KeyvStore(1000); +const store = () => new KeyvLru(1000); keyvTestSuite(testSuite, Keyv, store);