Skip to content

Commit 04d23c6

Browse files
Fix non-windows test
1 parent 1523faa commit 04d23c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/GroupPolicyEnforcement.Tests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
Describe 'GroupPolicyEnforcement API Tests' -Tags 'CI' {
88

9-
It 'Should return the correct policy enforcement status' -Skip:(-not $IsWindows) {
9+
It 'IsGroupPolicyEnabled should return the correct policy enforcement status' -Skip:(-not $IsWindows) {
1010
$actualStatus = [Microsoft.PowerShell.PSResourceGet.Cmdlets.GroupPolicyRepositoryEnforcement]::IsGroupPolicyEnabled()
1111
$actualStatus | Should -BeFalse
1212
}
1313

14-
It 'Should return platform not supported exception on non-windows platform' -Skip:$IsWindows {
15-
[Microsoft.PowerShell.PSResourceGet.Cmdlets.GroupPolicyRepositoryEnforcement]::IsGroupPolicyEnabled() | Should -BeTrue
14+
It 'IsGroupPolicyEnabled should return false on non-windows platform' -Skip:$IsWindows {
15+
[Microsoft.PowerShell.PSResourceGet.Cmdlets.GroupPolicyRepositoryEnforcement]::IsGroupPolicyEnabled() | Should -BeFalse
1616
}
1717

1818
It 'GetAllowedRepositoryURIs return null if Group Policy is not enabled' -Skip:(-not $IsWindows) {

0 commit comments

Comments
 (0)