Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
David Goldstein committed May 7, 2018
1 parent 4d8cfdd commit 0ec6486
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/es-module/test-esm-preserve-symlinks-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fs.mkdirSync(path.join(tmpDir, 'nested2'));
const entry = path.join(tmpDir, 'nested', 'entry.js');
const entry_link_absolute_path = path.join(tmpDir, 'link.js');
const submodule = path.join(tmpDir, 'nested2', 'submodule.js');
const submodule_link_absolute_path = path.join(tmpDir, 'submodule_link.js')
const submodule_link_absolute_path = path.join(tmpDir, 'submodule_link.js');

fs.writeFileSync(entry, `
const assert = require('assert');
Expand All @@ -40,7 +40,10 @@ function doTest(flags, done) {
// the symlink, and not relative to the symlink target; the file structure set
// up above requires this to not crash when loading ./submodule_link.js
spawn(process.execPath,
flags.concat(['--preserve-symlinks', '--preserve-symlinks-main', entry_link_absolute_path]),
flags.concat([
'--preserve-symlinks',
'--preserve-symlinks-main', entry_link_absolute_path
]),
{ stdio: 'inherit' }).on('exit', (code) => {
assert.strictEqual(code, 0);
done();
Expand All @@ -52,4 +55,3 @@ doTest([], () => {
// now test the new loader
doTest(['--experimental-modules'], () => {});
});

0 comments on commit 0ec6486

Please sign in to comment.