diff options
author | Rebecca Turner <me@re-becca.org> | 2017-05-10 09:49:27 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2017-05-26 04:55:11 +0300 |
commit | 006914514b3625165d8e1857965dcbf3b8031e3f (patch) | |
tree | 96f537739e2f2b0789c6f64837dd8f635fb2d0a5 /test | |
parent | db056476979d33070dde7f92d79fc6ee831209a2 (diff) |
test: fix spec-local-specifiers under nyc
Diffstat (limited to 'test')
-rw-r--r-- | test/tap/spec-local-specifiers.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/tap/spec-local-specifiers.js b/test/tap/spec-local-specifiers.js index 715c9c0ec..b9a484a11 100644 --- a/test/tap/spec-local-specifiers.js +++ b/test/tap/spec-local-specifiers.js @@ -383,11 +383,12 @@ testdirContent['install-behavior'] = Dir({ )), 'not-module': Dir({}), 'test-preinstall': Dir({ + 'preinstall.js': File('console.log("CWD:" + process.cwd())'), 'package.json': File({ name: 'test-preinstall', version: '1.0.0', scripts: { - 'preinstall': 'node -p "\'CWD:\' + process.cwd()"' + 'preinstall': 'node ' + ibdir + '/test-preinstall/preinstall.js' } }) }) |