From 7fbc9ef6739b6c23c447bba577c5ca694099deab Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Thu, 22 Dec 2016 14:30:46 +0700 Subject: [PATCH] Test onionoo instance contains endpoint methods --- test/types.js | 8 ++++++++ 1 file changed, 8 insertions(+) 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') + }) +})