Skip to content

Commit aad324d

Browse files
putxetargos
authored andcommitted
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 <[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]>
1 parent ab25a82 commit aad324d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-require-symlink.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function test() {
7878

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

0 commit comments

Comments
 (0)