Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e401e8c

Browse filesBrowse files
putxeaddaleax
authored andcommitted
test: change object assign to spread object
change object assign to spread object in test-npm-install.js PR-URL: #30422 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> 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>
1 parent 6848bfb commit e401e8c
Copy full SHA for e401e8c

File tree

Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-npm-install.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-npm-install.js
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ const pkgPath = path.join(installDir, 'package.json');
3838

3939
fs.writeFileSync(pkgPath, pkgContent);
4040

41-
const env = Object.assign({}, process.env, {
42-
PATH: path.dirname(process.execPath),
43-
NPM_CONFIG_PREFIX: path.join(npmSandbox, 'npm-prefix'),
44-
NPM_CONFIG_TMP: path.join(npmSandbox, 'npm-tmp'),
45-
HOME: homeDir,
46-
});
41+
const env = { ...process.env,
42+
PATH: path.dirname(process.execPath),
43+
NPM_CONFIG_PREFIX: path.join(npmSandbox, 'npm-prefix'),
44+
NPM_CONFIG_TMP: path.join(npmSandbox, 'npm-tmp'),
45+
HOME: homeDir,
46+
};
4747

4848
exec(`${process.execPath} ${npmPath} install`, {
4949
cwd: installDir,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.