Permalink
Browse files

test: use common.crashOnUnhandledRejection

PR-URL: #17233
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
shiningjason authored and gibfahn committed Nov 22, 2017
1 parent 699659e commit 797e33b602f93bc9e6e3b0dfce7edda72ca85e84
Showing with 4 additions and 3 deletions.
  1. +4 −3 test/parallel/test-repl-load-multiline.js
@@ -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');

0 comments on commit 797e33b

Please sign in to comment.