diff --git a/src/test/groovy/com/github/gradle/node/npm/task/NpmInstall_integTest.groovy b/src/test/groovy/com/github/gradle/node/npm/task/NpmInstall_integTest.groovy index 277a6d96..11ff9233 100644 --- a/src/test/groovy/com/github/gradle/node/npm/task/NpmInstall_integTest.groovy +++ b/src/test/groovy/com/github/gradle/node/npm/task/NpmInstall_integTest.groovy @@ -148,6 +148,19 @@ class NpmInstall_integTest extends AbstractIntegTest { then: result.task(':deleteNodeModules').outcome == TaskOutcome.SUCCESS + when: + result = build('npmInstall') + + then: + result.task(":npmInstall").outcome == TaskOutcome.SUCCESS + + when: + // when the node_modules is removed + result = build('deleteNodeModules') + + then: + result.task(':deleteNodeModules').outcome == TaskOutcome.SUCCESS + when: result = build('taskWithDependency')