Browse Source

Test Keyv cannot be invoked without \'new\'

emp
Luke Childs 7 years ago
committed by Jytesh
parent
commit
28665e4cfe
  1. 5
      packages/keyv/test/unit.js

5
packages/keyv/test/unit.js

@ -4,3 +4,8 @@ import Keyv from '../';
test('Keyv is a function', t => {
t.is(typeof Keyv, 'function');
});
test('Keyv cannot be invoked without \'new\'', t => {
t.throws(() => Keyv()); // eslint-disable-line new-cap
t.notThrows(() => new Keyv());
});

Loading…
Cancel
Save