Skip to content

Commit 45710b2

Browse files
committed
Use test from issue
1 parent bd65d10 commit 45710b2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/test/groovy/com/github/gradle/node/npm/task/NpmInstall_integTest.groovy

+13
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,19 @@ class NpmInstall_integTest extends AbstractIntegTest {
148148
then:
149149
result.task(':deleteNodeModules').outcome == TaskOutcome.SUCCESS
150150
151+
when:
152+
result = build('npmInstall')
153+
154+
then:
155+
result.task(":npmInstall").outcome == TaskOutcome.SUCCESS
156+
157+
when:
158+
// when the node_modules is removed
159+
result = build('deleteNodeModules')
160+
161+
then:
162+
result.task(':deleteNodeModules').outcome == TaskOutcome.SUCCESS
163+
151164
when:
152165
result = build('taskWithDependency')
153166

0 commit comments

Comments
 (0)