Skip to content

Commit

Permalink
Update pester syntax in Set-Location test (PowerShell#7615)
Browse files Browse the repository at this point in the history
  • Loading branch information
iSazonov authored and TravisEz13 committed Aug 23, 2018
1 parent 23832e5 commit 75c70a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 75c70a2

Please sign in to comment.