From b93285454ac96952a33ed9655661c2bbea35667f Mon Sep 17 00:00:00 2001 From: hschwalm Date: Fri, 6 Oct 2017 19:04:33 +0100 Subject: test: replace fixturesDir with fixtures module PR-URL: https://github.com/nodejs/node/pull/15989 Reviewed-By: Joyee Cheung Reviewed-By: Colin Ihrig --- test/es-module/test-esm-encoded-path-native.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/es-module') diff --git a/test/es-module/test-esm-encoded-path-native.js b/test/es-module/test-esm-encoded-path-native.js index f32297efdb..a3106742d9 100644 --- a/test/es-module/test-esm-encoded-path-native.js +++ b/test/es-module/test-esm-encoded-path-native.js @@ -1,9 +1,10 @@ 'use strict'; -const common = require('../common'); +require('../common'); +const fixtures = require('../common/fixtures'); const assert = require('assert'); const { spawn } = require('child_process'); -const native = `${common.fixturesDir}/es-module-url/native.mjs`; +const native = fixtures.path('es-module-url/native.mjs'); const child = spawn(process.execPath, ['--experimental-modules', native]); child.on('exit', (code) => { assert.strictEqual(code, 1); -- cgit v1.2.3