Skip to content

Commit

Permalink
test: use common.crashOnUnhandledRejection
Browse files Browse the repository at this point in the history
PR-URL: #17233
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Jason Chung authored and gibfahn committed Dec 19, 2017
1 parent 699659e commit 797e33b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/parallel/test-repl-load-multiline.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
'use strict';
const common = require('../common');
const path = require('path');
const fixtures = common.fixturesDir;
const fixtures = require('../common/fixtures');
const assert = require('assert');
const repl = require('repl');

const command = `.load ${path.join(fixtures, 'repl-load-multiline.js')}`;
common.crashOnUnhandledRejection();

const command = `.load ${fixtures.path('repl-load-multiline.js')}`;
const terminalCode = '\u001b[1G\u001b[0J \u001b[1G';
const terminalCodeRegex = new RegExp(terminalCode.replace(/\[/g, '\\['), 'g');

Expand Down

0 comments on commit 797e33b

Please sign in to comment.