Files
runner-images/images/win/scripts/Tests/Node.Tests.ps1
Darii Nurgaleev b47ba413c9 Replace current validates with pester testing approach #3 (#1230)
* Pester Tests Approach implementation.

* changes for netPath
2020-07-17 11:29:03 +03:00

21 lines
587 B
PowerShell

Describe "Node.JS" {
Context "Basic modules"{
It "<ToolName> " -TestCases @(
@{ ToolName = "node" }
@{ ToolName = "npm" }
) {
"$ToolName --version" | Should -ReturnZeroExitCode
}
}
Context "Global NPM Packages" {
It "<ToolName> " -TestCases @(
@{ ToolName = "gulp" }
@{ ToolName = "grunt" }
@{ ToolName = "yarn" }
@{ ToolName = "lerna" }
@{ ToolName = "newman" }
) {
"$ToolName --version" | Should -ReturnZeroExitCode
}
}
}