diff --git a/test/types.js b/test/types.js index 1ea807d..2b9694f 100644 --- a/test/types.js +++ b/test/types.js @@ -15,3 +15,11 @@ test('Onionoo instance is an object', t => { 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') + }) +})