From 8153747322408a381b21eae25b57bf9671e16a83 Mon Sep 17 00:00:00 2001 From: Maxim Lobanov Date: Thu, 23 Apr 2020 06:28:12 +0300 Subject: [PATCH] add new test --- builders/win-node-builder.psm1 | 1 - tests/Node.Tests.ps1 | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/builders/win-node-builder.psm1 b/builders/win-node-builder.psm1 index 827e953..0246b26 100644 --- a/builders/win-node-builder.psm1 +++ b/builders/win-node-builder.psm1 @@ -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 } diff --git a/tests/Node.Tests.ps1 b/tests/Node.Tests.ps1 index 47f3927..8ff9cb7 100644 --- a/tests/Node.Tests.ps1 +++ b/tests/Node.Tests.ps1 @@ -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