Skip to content

Commit

Permalink
Test Keyv is an instance of Keyv
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Jul 7, 2017
1 parent a58f231 commit 030297a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 030297a

Please sign in to comment.