From 60b17b4fe60ad33dab672ef9aef3007dfc3e6a37 Mon Sep 17 00:00:00 2001 From: poutch Date: Tue, 12 Nov 2019 16:14:14 +0000 Subject: [PATCH] test: change object assign by spread operator change object assign by spread operator in test-require-symlink.js PR-URL: https://github.com/nodejs/node/pull/30438 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat --- test/parallel/test-require-symlink.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-require-symlink.js b/test/parallel/test-require-symlink.js index 5c9b0fbdef3595..2e8a03ac820df5 100644 --- a/test/parallel/test-require-symlink.js +++ b/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);