diff --git a/test/server/terminal.js b/test/server/terminal.js index 03651faa..42813006 100644 --- a/test/server/terminal.js +++ b/test/server/terminal.js @@ -17,9 +17,8 @@ test('cloudcmd: terminal: disabled', (t) => { const terminal = require('../../server/terminal'); const fn = terminal(); - const noop = () => {}; - t.equal(String(fn), String(noop), 'should return noop'); + t.notOk(fn(), 'should return noop'); clean(configPath); require(configPath);