Browse Source

Move constructor type tests into a single test

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

5
packages/keyv/test/unit.js

@ -1,11 +1,8 @@
import test from 'ava';
import Keyv from '../';
test('Keyv is a function', t => {
test('Keyv is a class', 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