Skip to content

Commit

Permalink
fix: the official test suit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateu Aguiló Bosch committed Jul 23, 2018
1 parent 8382d0c commit 020ea6d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -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 };
7 changes: 7 additions & 0 deletions test-suite-managed-ttl.js
Original file line number Diff line number Diff line change
@@ -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);
4 changes: 2 additions & 2 deletions test-suite.js
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 020ea6d

Please sign in to comment.