Skip to content
Permalink
Browse files

test: change object assign by spread operator

change object assign by spread operator in test-require-symlink.js
PR-URL: #30438
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
putxe authored and MylesBorins committed Nov 12, 2019
1 parent 7d0631a commit 2f8dcefa6da653ae9d9590d5cb23692fd1b77a6a
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/parallel/test-require-symlink.js
@@ -78,7 +78,7 @@ function test() {

// Also verify that symlinks works for setting preserve via env variables
const childEnv = spawn(node, [linkScript], {
env: Object.assign({}, process.env, { NODE_PRESERVE_SYMLINKS: '1' })
env: { ...process.env, NODE_PRESERVE_SYMLINKS: '1' }
});
childEnv.on('close', function(code, signal) {
assert.strictEqual(code, 0);

0 comments on commit 2f8dcef

Please sign in to comment.
You can’t perform that action at this time.