diff options
author | hschwalm <mail@hendrikschwalm.de> | 2017-10-06 19:04:33 +0100 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2017-10-16 23:50:09 +0800 |
commit | b93285454ac96952a33ed9655661c2bbea35667f (patch) | |
tree | c505c879668c579c9e7dd691fc5dd2741fb96029 /test/es-module | |
parent | da7d92e3f030c3054b12457f70aa4c54a7ebc82b (diff) | |
download | android-node-v8-b93285454ac96952a33ed9655661c2bbea35667f.tar.gz android-node-v8-b93285454ac96952a33ed9655661c2bbea35667f.tar.bz2 android-node-v8-b93285454ac96952a33ed9655661c2bbea35667f.zip |
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>
Diffstat (limited to 'test/es-module')
-rw-r--r-- | test/es-module/test-esm-encoded-path-native.js | 5 |
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); |