Skip to content

Commit 797e33b

Browse files
Jason Chunggibfahn
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
constcommon=require('../common');
3-
constpath=require('path');
4-
constfixtures=common.fixturesDir;
3+
constfixtures=require('../common/fixtures');
54
constassert=require('assert');
65
constrepl=require('repl');
76

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

0 commit comments

Comments
(0)