mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Updating the "Should have the correct edition" test
Updating the "Should have the correct edition" test
This commit is contained in:
1 parent
3dcd621786
commit
2a67fd8ec5
1 file changed
+1
-10
@@ -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