Skip to content

Commit

Permalink
test: change object assign by spread operator
Browse files Browse the repository at this point in the history
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 gireeshpunathil committed Nov 26, 2019
1 parent 79e86ac commit 48a16f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-require-symlink.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 48a16f2

Please sign in to comment.