We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f484a4d commit 05ff695Copy full SHA for 05ff695
1 file changed
Tests/Unit/MSFT_xComputer.Tests.ps1
@@ -284,6 +284,7 @@ try
284
{Set-TargetResource -Name "ThisIsBad<>"} | Should Throw
285
}
286
It 'Changes computer description'{
287
+ Mock Get-ComputerDomain {''}
288
Mock Get-WMIObject {[PSCustomObject]@{Domain = 'Contoso';Workgroup='Contoso';PartOfDomain=$false}}
289
Set-TargetResource -Name $env:COMPUTERNAME -Description = 'This is my computer'
290
Assert-MockCalled -CommandName Set-CimInstance -Exactly 1 -Scope It
0 commit comments