Comparing version 0.1.3 to 0.2.0
{ | ||
"name": "keyv", | ||
"version": "0.1.3", | ||
"version": "0.2.0", | ||
"description": "Simple key/value store with support for multiple backends", | ||
@@ -36,2 +36,3 @@ "main": "src/index.js", | ||
"eslint-config-xo-lukechilds": "^1.0.0", | ||
"keyv-api-tests": "*", | ||
"nyc": "^10.3.2", | ||
@@ -38,0 +39,0 @@ "xo": "^0.19.0" |
@@ -41,4 +41,9 @@ 'use strict'; | ||
} | ||
clear() { | ||
const store = this.opts.store; | ||
return Promise.resolve(store.clear()); | ||
} | ||
} | ||
module.exports = Keyv; |
import test from 'ava'; | ||
import delay from 'delay'; | ||
import keyvApiTests from 'keyv-api-tests'; | ||
import Keyv from '../'; | ||
import testStore from './helpers/test-store'; | ||
const store = new Map(); | ||
keyvApiTests(test, Keyv, store); | ||
test('Keyv is a class', t => { | ||
@@ -65,4 +68,1 @@ t.is(typeof Keyv, 'function'); | ||
}); | ||
const store = new Map(); | ||
testStore(store); |
6694
7
7
103