From 934ec78fc824990f1c361b4a078feed7423107ad Mon Sep 17 00:00:00 2001 From: Nikita Bykov Date: Mon, 24 Aug 2020 16:42:58 +0300 Subject: [PATCH] updated "version is correct" test --- tests/Go.Tests.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/Go.Tests.ps1 b/tests/Go.Tests.ps1 index b9a393c..c20410e 100644 --- a/tests/Go.Tests.ps1 +++ b/tests/Go.Tests.ps1 @@ -24,8 +24,7 @@ Describe "Go" { } It "version is correct" { - $(go version) -match "go(?\d+\.\d+\.\d+)" | Out-Null - $versionOutput = $Matches.Version + $versionOutput = '$(go version) -match "go(?\d+\.\d+\.\d+)" | Out-Null', ' Write-Host $Matches.Version' | Invoke-Expression $versionOutput | Should -Match $Version }