diff --git a/test/server/terminal.js b/test/server/terminal.js index de1b607d..e734c85b 100644 --- a/test/server/terminal.js +++ b/test/server/terminal.js @@ -69,7 +69,9 @@ test('cloudcmd: terminal: enabled: no string', (t) => { const msg = 'cloudcmd --terminal: Cannot find module \'hello\''; - t.ok(log.calledWith(msg), 'should call exit'); + const [arg] = log.args[0]; + + t.ok(arg.includes(msg), 'should call with msg'); t.end(); });