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