test: use spread object

Object.assign() can be replaced by spread objects

PR-URL: https://github.com/nodejs/node/pull/30423
Refs: https://eslint.org/docs/rules/prefer-object-spread
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
Fran Herrero authored and Ruben Bridgewater committed 2020-01-03 01:44:54 +01:00
1 parent 76d4a23468
commit c52ebc06da
23 files changed
+31 -31

No files matched your search

@@ -63,7 +63,7 @@ function variations(iter, port, cb) {
// Save `value` for check the next time.
value = next.value.val;
const [key, val] = next.value;
https.get(Object.assign({}, getBaseOptions(port), { [key]: val }),
https.get({ ...getBaseOptions(port), [key]: val },
variations(iter, port, cb));
}
}));