Browse Source

test: replace fixturesDir with fixtures module

PR-URL: https://github.com/nodejs/node/pull/15989
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
v9.x-staging
hschwalm 7 years ago
committed by Joyee Cheung
parent
commit
b93285454a
  1. 5
      test/es-module/test-esm-encoded-path-native.js

5
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);

Loading…
Cancel
Save