From f3e63f254c7783180c354cc490211abef8c868bc Mon Sep 17 00:00:00 2001 From: Adam Wegrzynek Date: Mon, 6 Nov 2017 15:42:19 +0100 Subject: [PATCH] test: update test to use fixtures Update test-repl-require-context to use fixtures module. PR-URL: https://github.com/nodejs/node/pull/16799 Reviewed-By: Gireesh Punathil Reviewed-By: Colin Ihrig Reviewed-By: Rich Trott --- test/parallel/test-repl-require-context.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-repl-require-context.js b/test/parallel/test-repl-require-context.js index 51a7339773a31e..84896783211ab4 100644 --- a/test/parallel/test-repl-require-context.js +++ b/test/parallel/test-repl-require-context.js @@ -2,10 +2,9 @@ const common = require('../common'); const assert = require('assert'); const cp = require('child_process'); -const path = require('path'); const child = cp.spawn(process.execPath, ['--interactive']); -const fixture = path.join(common.fixturesDir, 'is-object.js').replace(/\\/g, - '/'); +const fixtures = require('../common/fixtures'); +const fixture = fixtures.path('is-object.js').replace(/\\/g, '/'); let output = ''; child.stdout.setEncoding('utf8');