0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/es-module/test-esm-encoded-path-native.js
hschwalm b93285454a 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>
2017-10-16 23:50:09 +08:00

12 lines
360 B
JavaScript

'use strict';
require('../common');
const fixtures = require('../common/fixtures');
const assert = require('assert');
const { spawn } = require('child_process');
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);
});