Browse Source

Test Onionoo cannot be invoked without 'new'

pull/14/head
Luke Childs 8 years ago
parent
commit
c2af0539e3
  1. 5
      test/unit.js

5
test/unit.js

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

Loading…
Cancel
Save