add new test
This commit is contained in:
@@ -44,7 +44,6 @@ class WinNodeBuilder : NodeBuilder {
|
||||
$extractTargetDirectory = Join-Path $this.TempFolderLocation "tempExtract"
|
||||
Extract-7ZipArchive -ArchivePath $archivePath -OutputDirectory $extractTargetDirectory
|
||||
$nodeOutputPath = Get-Item $extractTargetDirectory\* | Select-Object -First 1 -ExpandProperty Fullname
|
||||
Write-Host $nodeOutputPath
|
||||
Move-Item -Path $nodeOutputPath\* -Destination $this.ArtifactLocation
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user