From a45ea54111c8da2c95282906293176c13d3a0f35 Mon Sep 17 00:00:00 2001 From: Chris Ubben Date: Thu, 22 Sep 2016 16:49:25 -0700 Subject: [PATCH] Removed all misspelling of throw --- .../Pester.Commands.Cmdlets.Archive.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Archive/Pester.Commands.Cmdlets.Archive.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Archive/Pester.Commands.Cmdlets.Archive.Tests.ps1 index 39314e653a..0a864584fa 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Archive/Pester.Commands.Cmdlets.Archive.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Archive/Pester.Commands.Cmdlets.Archive.Tests.ps1 @@ -69,7 +69,7 @@ Describe "Test suite for Microsoft.PowerShell.Archive module" -Tags "CI" { try { Compress-Archive -Path $path -DestinationPath $destinationPath -CompressionLevel $compressionLevel - trow "ValidateNotNullOrEmpty attribute is missing on one of parameters belonging to Path parameterset." + throw "ValidateNotNullOrEmpty attribute is missing on one of parameters belonging to Path parameterset." } catch { @@ -645,7 +645,7 @@ Describe "Test suite for Microsoft.PowerShell.Archive module" -Tags "CI" { } Context "Expand-Archive - Parameter validation test cases" { - It "Validate non existing archive -Path trows expected error message" { + It "Validate non existing archive -Path throws expected error message" { $sourcePath = "$TestDrive/SourceDir" $destinationPath = "$TestDrive/ExpandedArchive" try