Skip to content

Commit 797e33b

Browse files
Jason Chunggibfahn
Jason Chung
authored andcommitted
test: use common.crashOnUnhandledRejection
PR-URL: #17233 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 699659e commit 797e33b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/parallel/test-repl-load-multiline.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
'use strict';
22
const common = require('../common');
3-
const path = require('path');
4-
const fixtures = common.fixturesDir;
3+
const fixtures = require('../common/fixtures');
54
const assert = require('assert');
65
const repl = require('repl');
76

8-
const command = `.load ${path.join(fixtures, 'repl-load-multiline.js')}`;
7+
common.crashOnUnhandledRejection();
8+
9+
const command = `.load ${fixtures.path('repl-load-multiline.js')}`;
910
const terminalCode = '\u001b[1G\u001b[0J \u001b[1G';
1011
const terminalCodeRegex = new RegExp(terminalCode.replace(/\[/g, '\\['), 'g');
1112

0 commit comments

Comments
 (0)