Skip to content

Commit e24caaf

Browse files
committed
Fix Attempt
1 parent 59ef06e commit e24caaf

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
@@ -287,7 +287,7 @@ try
287287
It 'Changes computer description in a workgroup'{
288288
Mock Get-ComputerDomain {''}
289289
Mock Get-WMIObject {[PSCustomObject]@{Domain = 'Contoso';Workgroup='Contoso';PartOfDomain=$false}}
290-
Set-TargetResource -Name $env:COMPUTERNAME -Description = 'This is my computer' | Should BeNullOrEmpty
290+
Set-TargetResource -Name $env:COMPUTERNAME -Description = 'This is my computer' -DomainName "" | Should BeNullOrEmpty
291291
Assert-MockCalled -CommandName Set-CimInstance -Exactly 1 -Scope It
292292
}
293293
It 'Changes computer description in a domain'{

0 commit comments

Comments
 (0)