[ubuntu] Refactor pester tests (#9006)
* [ubuntu] Refactor pester tests * Fix key name and add BeforeAll * Fix ActionArchiveCache test
This commit is contained in:
@@ -4,10 +4,6 @@ Describe "Node.js" {
|
||||
$testCases = $binaries + $module_commands | ForEach-Object { @{NodeCommand = $_} }
|
||||
|
||||
It "<NodeCommand>" -TestCases $testCases {
|
||||
param (
|
||||
[string] $NodeCommand
|
||||
)
|
||||
|
||||
"$NodeCommand --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
@@ -15,4 +11,3 @@ Describe "Node.js" {
|
||||
node --version | Should -BeLike "v$((Get-ToolsetContent).node.default).*"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user