Browse Source

Test endpoint methods return promise

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

8
test/types.js

@ -23,3 +23,11 @@ test('Onionoo instance contains endpoint methods', t => {
t.is(typeof onionoo[endpoint], 'function')
})
})
test('Endpoint methods return promise', t => {
const onionoo = new Onionoo()
Object.keys(onionoo).forEach(endpoint => {
t.true(onionoo[endpoint]() instanceof Promise)
})
})

Loading…
Cancel
Save