Browse Source

Run official keyv storage adapter tests

emp
Luke Childs 7 years ago
committed by Jytesh
parent
commit
a07829379f
  1. 6
      packages/keyv-redis/package.json
  2. 4
      packages/keyv-redis/test/test.js

6
packages/keyv-redis/package.json

@ -10,6 +10,11 @@
"xo": {
"extends": "xo-lukechilds"
},
"ava": {
"require": [
"requireable"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/lukechilds/keyv-redis.git"
@ -43,6 +48,7 @@
"keyv": "*",
"keyv-test-suite": "^1.3.0",
"nyc": "^10.3.2",
"requireable": "^0.3.0",
"xo": "^0.19.0"
}
}

4
packages/keyv-redis/test/test.js

@ -1,7 +1,9 @@
import test from 'ava';
import keyvTestSuite from 'keyv-test-suite';
import keyvTestSuite, { keyvOfficialTests } from 'keyv-test-suite';
import Keyv from 'keyv';
import KeyvRedis from '../';
keyvOfficialTests(test, Keyv, 'redis://localhost', 'redis://foo');
const store = new KeyvRedis();
keyvTestSuite(test, Keyv, store);

Loading…
Cancel
Save