From 2011471079aafc5e0b4da10101383bd0eb358f55 Mon Sep 17 00:00:00 2001 From: Chris Hill Date: Fri, 14 Jun 2024 17:43:27 +0100 Subject: [PATCH] Fix spellings --- Tests/Unit/MSFT_UpdateServicesComputerTargetGroup.tests.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/Unit/MSFT_UpdateServicesComputerTargetGroup.tests.ps1 b/Tests/Unit/MSFT_UpdateServicesComputerTargetGroup.tests.ps1 index 22e2f79..0f762c7 100644 --- a/Tests/Unit/MSFT_UpdateServicesComputerTargetGroup.tests.ps1 +++ b/Tests/Unit/MSFT_UpdateServicesComputerTargetGroup.tests.ps1 @@ -60,7 +60,7 @@ try Context 'An error occurs retrieving WSUS Server configuration information.' { Mock -CommandName Get-WsusServer -MockWith { throw 'An error occurred.' } - It 'Calling Get should throw when an error occurrs retrieving WSUS Server information.' { + It 'Calling Get should throw when an error occurs retrieving WSUS Server information.' { { $script:resource = Get-TargetResource -Name 'Servers' -Path 'All Computers'} | Should -Throw ($script:localizedData.WSUSConfigurationFailed) $script:resource | Should -Be $null Assert-MockCalled -CommandName Get-WsusServer -Exactly 1 @@ -70,7 +70,7 @@ try Context 'The WSUS Server is not yet configured.' { Mock -CommandName Get-WsusServer -MockWith {} - It 'Calling Get should not throw when the WSUS Server is not yet configuration / cannot be found.' { + It 'Calling Get should not throw when the WSUS Server is not yet configured / cannot be found.' { { $script:resource = Get-TargetResource -Name 'Servers' -Path 'All Computers'} | Should -Not -Throw Assert-MockCalled -CommandName Write-Verbose -ParameterFilter { $message -eq $script:localizedData.GetWsusServerFailed @@ -220,7 +220,7 @@ try Context 'An error occurs retrieving WSUS Server configuration information.' { Mock -CommandName Get-WsusServer -MockWith { throw 'An error occurred.' } - It 'Calling Set should throw when an error occurrs retrieving WSUS Server information.' { + It 'Calling Set should throw when an error occurs retrieving WSUS Server information.' { { $script:resource = Set-TargetResource -Name 'Servers' -Path 'All Computers'} | Should -Throw ($script:localizedData.WSUSConfigurationFailed) $script:resource | Should -Be $null Assert-MockCalled -CommandName Get-WsusServer -Exactly 1