Skip to content

Commit ec0dcd7

Browse files
committed
fixup! fixup! test,debugger: migrate node-inspect tests to core
1 parent aef35b5 commit ec0dcd7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

test/inspector-cli/test-inspector-cli-exec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const assert = require('assert');
3131
.then(() => {
3232
assert.match(
3333
cli.output,
34-
/Press Ctrl \+ C to leave debug repl\n> /,
34+
/Press Ctrl \+ C to leave debug repl\n+> /,
3535
'shows hint for how to leave repl');
3636
assert.doesNotMatch(cli.output, /debug>/, 'changes the repl style');
3737
})

test/inspector-cli/test-inspector-cli-preserve-breaks.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ const path = require('path');
6161
assert.match(cli.output, /#0 [^\n]+three-lines\.js\$?:2/);
6262
assert.match(cli.output, /#1 [^\n]+three-lines\.js\$?:3/);
6363
} else {
64-
assert.ok(cli.output.includes(`#0 ${script}:2`));
65-
assert.ok(cli.output.includes(`#1 ${script}:3`));
64+
const msg = `SCRIPT: ${script}, OUTPUT: ${cli.output}`;
65+
assert.ok(cli.output.includes(`#0 ${script}:2`), msg);
66+
assert.ok(cli.output.includes(`#1 ${script}:3`), msg);
6667
}
6768
})
6869
.then(() => cli.quit())

0 commit comments

Comments
 (0)