Skip to content

Commit

Permalink
test: replace fixturesDir with fixtures module
Browse files Browse the repository at this point in the history
PR-URL: #15989
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
hschwalm authored and joyeecheung committed Oct 16, 2017
1 parent da7d92e commit b932854
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/es-module/test-esm-encoded-path-native.js
Original file line number Diff line number Diff line change
@@ -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);
Expand Down

0 comments on commit b932854

Please sign in to comment.