Browse Source

Test Keyv is an instance of Keyv

emp
Luke Childs 7 years ago
committed by Jytesh
parent
commit
cf97f3e70d
  1. 4
      packages/keyv/test/unit.js

4
packages/keyv/test/unit.js

@ -10,6 +10,10 @@ test('Keyv cannot be invoked without \'new\'', t => {
t.notThrows(() => new Keyv());
});
test('Keyv is an instance of Keyv', t => {
t.true(new Keyv() instanceof Keyv);
});
test('.set(key, value) returns a Promise', t => {
const store = new Keyv();
t.true(store.set('foo', 'bar') instanceof Promise);

Loading…
Cancel
Save