Updating the "Should have the correct edition" test
Updating the "Should have the correct edition" test
This commit is contained in:
parent
3dcd621786
commit
2a67fd8ec5
|
@ -20,15 +20,6 @@ Describe "PSVersionTable" {
|
|||
}
|
||||
|
||||
It "Should have the correct edition" -Skip:(!$IsCore) {
|
||||
$expected =
|
||||
if ($IsLinux -Or $IsOSX) {
|
||||
"Linux"
|
||||
} elseif ($IsWindows) {
|
||||
"Core"
|
||||
} else {
|
||||
throw [PlatformNotSupportedException]
|
||||
}
|
||||
|
||||
$PSVersionTable["PSEdition"] | Should Be $expected
|
||||
$PSVersionTable["PSEdition"] | Should Be "PowerShellCore"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue