We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59ef06e commit e24caafCopy full SHA for e24caaf
1 file changed
Tests/Unit/MSFT_xComputer.Tests.ps1
@@ -287,7 +287,7 @@ try
287
It 'Changes computer description in a workgroup'{
288
Mock Get-ComputerDomain {''}
289
Mock Get-WMIObject {[PSCustomObject]@{Domain = 'Contoso';Workgroup='Contoso';PartOfDomain=$false}}
290
- Set-TargetResource -Name $env:COMPUTERNAME -Description = 'This is my computer' | Should BeNullOrEmpty
+ Set-TargetResource -Name $env:COMPUTERNAME -Description = 'This is my computer' -DomainName "" | Should BeNullOrEmpty
291
Assert-MockCalled -CommandName Set-CimInstance -Exactly 1 -Scope It
292
}
293
It 'Changes computer description in a domain'{
0 commit comments