Skip to content

Commit b932854

Browse files
hschwalmjoyeecheung
authored andcommitted
test: replace fixturesDir with fixtures module
PR-URL: #15989 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent da7d92e commit b932854

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/es-module/test-esm-encoded-path-native.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
'use strict';
2-
const common = require('../common');
2+
require('../common');
3+
const fixtures = require('../common/fixtures');
34
const assert = require('assert');
45
const { spawn } = require('child_process');
56

6-
const native = `${common.fixturesDir}/es-module-url/native.mjs`;
7+
const native = fixtures.path('es-module-url/native.mjs');
78
const child = spawn(process.execPath, ['--experimental-modules', native]);
89
child.on('exit', (code) => {
910
assert.strictEqual(code, 1);

0 commit comments

Comments
 (0)