diff options
author | Jakob Krigovsky <jakob.krigovsky@gmail.com> | 2015-04-03 22:17:21 +0300 |
---|---|---|
committer | Jakob Krigovsky <jakob.krigovsky@gmail.com> | 2015-04-03 22:17:21 +0300 |
commit | 54cd8956ea783f96749e46597d8c2cb9397c5d5f (patch) | |
tree | b1ac7bfb5e4db0be898f4496b08a0475141d763c | |
parent | d32eb86e43c3a5d97f76b24964be7d4548d73a17 (diff) |
Pass -e to node when using -p
Under Node.js v0.8, `node -p` alone does nothing, see https://github.com/joyent/node/issues/3938.
-rw-r--r-- | test/tap/umask-lifecycle.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tap/umask-lifecycle.js b/test/tap/umask-lifecycle.js index e4f91a2df..38b3cf40e 100644 --- a/test/tap/umask-lifecycle.js +++ b/test/tap/umask-lifecycle.js @@ -10,14 +10,14 @@ var pkg = path.resolve(__dirname, "umask-lifecycle") var pj = JSON.stringify({ name:"x", version: "1.2.3", - scripts: { umask: "$npm_execpath config get umask && echo \"$npm_config_umask\" && node -p 'process.umask()'" } + scripts: { umask: "$npm_execpath config get umask && echo \"$npm_config_umask\" && node -pe 'process.umask()'" } }, null, 2) + "\n" var umask = process.umask() var expected = [ "", "> x@1.2.3 umask "+path.join(__dirname, "umask-lifecycle"), - "> $npm_execpath config get umask && echo \"$npm_config_umask\" && node -p 'process.umask()'", + "> $npm_execpath config get umask && echo \"$npm_config_umask\" && node -pe 'process.umask()'", "", sprintf("%04o", umask), sprintf("%04o", umask), |