diff --git a/tests/Go.Tests.ps1 b/tests/Go.Tests.ps1 index 3aa1a51..a11fd73 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', '$Matches.Version' | Invoke-Expression + $versionOutput = Invoke-Expression "go version" $versionOutput | Should -Match $Version }