mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Updating the "Should have the correct edition" test
Updating the "Should have the correct edition" test
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user