Skip to content

Commit

Permalink
Fix spellings
Browse files Browse the repository at this point in the history
  • Loading branch information
Borgquite committed Jun 14, 2024
1 parent 3022779 commit 2011471
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/Unit/MSFT_UpdateServicesComputerTargetGroup.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2011471

Please sign in to comment.