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 <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • Loading branch information
putxe authored and targos committed Dec 1, 2019
1 parent ab25a82 commit aad324d
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 aad324d

Please sign in to comment.