File tree Expand file tree Collapse file tree
groovy/com/github/gradle/node
resources/fixtures/node-system-version Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,11 +29,11 @@ class SystemVersion_integTest extends AbstractIntegTest {
2929 result2. output. contains(" Project repositories: 0" )
3030
3131 when :
32- def result3 = build(" :npmHelp " )
32+ def result3 = build(" :npmVersion " )
3333
3434 then :
35- result3. task(" :npmHelp " ). outcome == TaskOutcome . SUCCESS
36- result3. output. contains(" Usage: npm <command> " )
35+ result3. task(" :npmVersion " ). outcome == TaskOutcome . SUCCESS
36+ result3. output. contains(" npm: ' " )
3737
3838 when :
3939 def result4 = build(" :npxHelp" )
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ class NpmInstall_integTest extends AbstractIntegTest {
118118 def result = buildAndFail(' npmInstall' )
119119
120120 then :
121- result. output. contains(' can only install packages with an existing package-lock.json' )
121+ result. output. contains(' can only install with an existing package-lock.json' )
122122 result. task(' :npmInstall' ). outcome == TaskOutcome . FAILED
123123
124124 when :
Original file line number Diff line number Diff line change @@ -13,9 +13,8 @@ task countRepositories {
1313 }
1414}
1515
16- task npmHelp (type : NpmTask ) {
17- npmCommand = [" --help" ]
18- ignoreExitValue = true
16+ task npmVersion (type : NpmTask ) {
17+ npmCommand = [" version" ]
1918}
2019
2120task npxHelp (type : NpxTask ) {
You can’t perform that action at this time.
0 commit comments