Replace current validates with pester testing approach #3 (#1230)

* Pester Tests Approach implementation.

* changes for netPath
This commit is contained in:
Darii Nurgaleev
2020-07-17 15:29:03 +07:00
committed by GitHub
parent 4b271d3303
commit b47ba413c9
31 changed files with 146 additions and 440 deletions

View File

@@ -0,0 +1,21 @@
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
}
}
}