diff --git a/src/pester-tests/Test-Environment-Variables.Tests.ps1 b/src/pester-tests/Test-Environment-Variables.Tests.ps1 index 5b3cc1ce5d..0712237e11 100644 --- a/src/pester-tests/Test-Environment-Variables.Tests.ps1 +++ b/src/pester-tests/Test-Environment-Variables.Tests.ps1 @@ -7,7 +7,6 @@ $expected = /bin/bash -c "cd ~ && pwd" (Get-Item ENV:HOME).Value | Should Be $expected - (Get-Item ENV:PATH).Value | Should Not BeNullOrEmpty } It "Should be able to set the environment variables" { @@ -17,4 +16,18 @@ $ENV:TESTENVIRONMENTVARIABLE | Should Be "this is a test environment variable" } + + It "Should contain /bin in the PATH" { + $ENV:PATH | Should Match "/bin" + } + + It "Should have the correct HOSTNAME" { + $expected = /bin/bash -c hostname + + $ENV:HOSTNAME | Should Be $expected + } + + It "Should have a nonempty PATH" { + $ENV:PATH | Should Not BeNullOrEmpty + } }