mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
test(terminal) node v12 support
This commit is contained in:
parent
d1af83e258
commit
9db56a7fd7
1 changed files with 3 additions and 1 deletions
|
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue