add new test

This commit is contained in:
Maxim Lobanov
2020-04-23 06:28:12 +03:00
parent 8dae118225
commit 8153747322
2 changed files with 5 additions and 1 deletions

View File

@@ -20,6 +20,11 @@ Describe "Node.js" {
"node --version" | Should -ReturnZeroExitCode
}
It "version is correct" {
$versionOutput = Invoke-Expression "node --version"
$versionOutput | Should -Match $Version
}
It "is used from tool-cache" {
$nodePath = (Get-Command "node").Path
$nodePath | Should -Not -BeNullOrEmpty