From 5fac6462098bc23c2c45728ced9120e74f064676 Mon Sep 17 00:00:00 2001 From: Maxim Lobanov Date: Thu, 5 Nov 2020 10:38:20 +0300 Subject: [PATCH] Update Node.Tests.ps1 --- images/macos/tests/Node.Tests.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/images/macos/tests/Node.Tests.ps1 b/images/macos/tests/Node.Tests.ps1 index 7fde021d1..65005eb6e 100644 --- a/images/macos/tests/Node.Tests.ps1 +++ b/images/macos/tests/Node.Tests.ps1 @@ -4,7 +4,7 @@ Import-Module "$PSScriptRoot/../helpers/Tests.Helpers.psm1" Describe "Node.JS" { BeforeAll { $os = Get-OSVersion - $expectedNodeVersion = if ($os.IsHigherThanMojave) { "v12.*" } else { "v8.*" } + $expectedNodeVersion = if ($os.IsHigherThanMojave) { "v14.*" } else { "v8.*" } } It "Node.JS is installed" { @@ -29,7 +29,7 @@ Describe "NVM" { $nvmPath = Join-Path $env:HOME ".nvm" "nvm.sh" $nvmInitCommand = ". $nvmPath > /dev/null 2>&1 || true" } - + It "Nvm is installed" { $nvmPath | Should -Exist "$nvmInitCommand && nvm --version" | Should -ReturnZeroExitCode @@ -43,7 +43,7 @@ Describe "NVM" { param ( [string] $NvmVersion ) - + "$nvmInitCommand && nvm ls $($NvmVersion)" | Should -ReturnZeroExitCode } }