summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/es-module/test-esm-encoded-path-native.js5
1 files changed, 3 insertions, 2 deletions
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);