From 797e33b602f93bc9e6e3b0dfce7edda72ca85e84 Mon Sep 17 00:00:00 2001 From: Jason Chung Date: Wed, 22 Nov 2017 16:51:15 +0800 Subject: [PATCH] test: use common.crashOnUnhandledRejection PR-URL: https://github.com/nodejs/node/pull/17233 Reviewed-By: Myles Borins Reviewed-By: James M Snell --- test/parallel/test-repl-load-multiline.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-repl-load-multiline.js b/test/parallel/test-repl-load-multiline.js index 3a60c7b4576a79..8ab878ae768ddd 100644 --- a/test/parallel/test-repl-load-multiline.js +++ b/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');