[Windows] Update cabal pester test (#5121)

* [Windows] Update cabal pester test

* Add CABAL_DIR test
This commit is contained in:
Aleksandr Chebotov
2022-02-22 19:20:26 +03:00
committed by GitHub
parent bb7ee95a7b
commit 55a07214fe

View File

@@ -49,9 +49,12 @@ Describe "Haskell" {
"cabal --version" | Should -ReturnZeroExitCode
}
It "cabal config was modified and exists" {
$env:CABAL_DIR | Should -Exist
"cabal user-config diff" | Should -ReturnZeroExitCode
It "cabal folder does not exist" {
$env:CABAL_DIR | Should -Not -Exist
}
It "CABAL_DIR environment variable exists" {
Get-EnvironmentVariable CABAL_DIR | Should -BeExactly "C:\cabal"
}
It "ghcup is installed" {