Browse Source

Test onionoo instance contains endpoint methods

pull/15/head
Luke Childs 8 years ago
parent
commit
7fbc9ef673
  1. 8
      test/types.js

8
test/types.js

@ -15,3 +15,11 @@ test('Onionoo instance is an object', t => {
t.is(typeof onionoo, 'object') t.is(typeof onionoo, 'object')
}) })
test('Onionoo instance contains endpoint methods', t => {
const onionoo = new Onionoo()
Object.keys(onionoo).forEach(endpoint => {
t.is(typeof onionoo[endpoint], 'function')
})
})

Loading…
Cancel
Save