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 }