Skip to content

Commit

Permalink
Initialize $PesterException
Browse files Browse the repository at this point in the history
"It" initializes $PesterException for Strict Mode compatibility.
Fixes #75
  • Loading branch information
dlwyatt authored and nohwnd committed Jun 11, 2014
1 parent 92239cc commit 64b3ba7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Functions/It.ps1
Expand Up @@ -65,7 +65,8 @@ param(
[ScriptBlock] $test = $(Throw "No test script block is provided. (Have you put the open curly brace on the next line?)")
)


$PesterException = $null

$Time = Measure-Command {
try{
&{ &$test }
Expand Down

0 comments on commit 64b3ba7

Please sign in to comment.