test(terminal) node v12 support

This commit is contained in:
coderaiser 2019-05-01 13:02:06 +03:00
parent d1af83e258
commit 9db56a7fd7

View file

@ -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();
});