From 9db56a7fd745df1a530db8e4e86a3c0596c11907 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 1 May 2019 13:02:06 +0300 Subject: [PATCH] test(terminal) node v12 support --- test/server/terminal.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); });