mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 11:37:00 +00:00
* [ubuntu] Refactor pester tests * Fix key name and add BeforeAll * Fix ActionArchiveCache test
14 lines
505 B
PowerShell
14 lines
505 B
PowerShell
Describe "Node.js" {
|
|
$binaries = @("node")
|
|
$module_commands = (Get-ToolsetContent).node_modules | ForEach-Object { $_.command }
|
|
$testCases = $binaries + $module_commands | ForEach-Object { @{NodeCommand = $_} }
|
|
|
|
It "<NodeCommand>" -TestCases $testCases {
|
|
"$NodeCommand --version" | Should -ReturnZeroExitCode
|
|
}
|
|
|
|
It "Node.js version should correspond to the version in the toolset" {
|
|
node --version | Should -BeLike "v$((Get-ToolsetContent).node.default).*"
|
|
}
|
|
}
|