From 907ade214a4805a983ab78a5f61482184d666571 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Mon, 19 Dec 2016 14:53:12 +0700 Subject: [PATCH] Tweak Onionoo instance object check to follow consistent pattern --- test/unit.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/unit.js b/test/unit.js index c9fbe56..defa424 100644 --- a/test/unit.js +++ b/test/unit.js @@ -11,7 +11,9 @@ test('Onionoo cannot be invoked without \'new\'', t => { }) test('Onionoo instance is an object', t => { - t.is(typeof new Onionoo(), 'object') + const onionoo = new Onionoo() + + t.is(typeof onionoo, 'object') }) test('Onionoo instance contains expected endpoints', t => {