mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 14:17:22 +00:00
* Add lerna to linux images * Add a comment about netlify-cli * remove Node.js tests from Tools.Tests.ps1 * fix tabs * revert empty lines * fix code style
15 lines
403 B
PowerShell
15 lines
403 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 {
|
|
param (
|
|
[string] $NodeCommand
|
|
)
|
|
|
|
"$NodeCommand --version" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
|