Skip to content

Commit d17e8f1

Browse files
committed
Fixed failing unit test for resource xComputer...
1 parent 57725e2 commit d17e8f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tests/Unit/MSFT_xComputer.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ try
130130
It 'Should return a hashtable containing Name, DomainName, JoinOU, CurrentOU, Credential, UnjoinCredential and WorkGroupName' {
131131
$Result = Get-TargetResource -Name $env:COMPUTERNAME
132132
$Result.GetType().Fullname | Should Be 'System.Collections.Hashtable'
133-
$Result.Keys | Should Be @('Name', 'DomainName', 'JoinOU', 'CurrentOU', 'Credential', 'UnjoinCredential', 'WorkGroupName')
133+
$Result.Keys | Sort-Object | Should Be @('Credential', 'CurrentOU', 'DomainName', 'JoinOU', 'Name', 'UnjoinCredential', 'WorkGroupName')
134134
}
135135
It 'Throws if name is to long' {
136136
{Get-TargetResource -Name "ThisNameIsTooLong"} | Should Throw

0 commit comments

Comments
 (0)