Skip to content

Commit 9080e52

Browse files
committed
Another attempted fix
1 parent 05ff695 commit 9080e52

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
@@ -286,7 +286,7 @@ try
286286
It 'Changes computer description'{
287287
Mock Get-ComputerDomain {''}
288288
Mock Get-WMIObject {[PSCustomObject]@{Domain = 'Contoso';Workgroup='Contoso';PartOfDomain=$false}}
289-
Set-TargetResource -Name $env:COMPUTERNAME -Description = 'This is my computer'
289+
Set-TargetResource -Name $env:COMPUTERNAME -WorkGroupName 'Contoso' -Description = 'This is my computer'
290290
Assert-MockCalled -CommandName Set-CimInstance -Exactly 1 -Scope It
291291
}
292292
}

0 commit comments

Comments
 (0)