Update pester syntax in Set-Location test (#7615)

This commit is contained in:
Ilya
2018-08-23 15:15:03 -07:00
committed by Travis Plunk
parent 23832e5e95
commit 75c70a2a7c
@@ -175,7 +175,7 @@ Describe "Set-Location" -Tags "CI" {
Set-Location ..
$ExecutionContext.InvokeCommand.LocationChangedAction = { throw "Boom" }
# Verify that the exception occurred
{ Set-Location $location } | Should Throw "Boom"
{ Set-Location $location } | Should -Throw "Boom"
# But the location should still have changed
$PWD.Path | Should -Be $location.Path
}