Skip to content

Commit

Permalink
Updated sessionstate variable that was missing $ (#1457)
Browse files Browse the repository at this point in the history
  • Loading branch information
halvarsson authored Feb 19, 2020
1 parent add7dc5 commit dece2a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Functions/Context.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ https://pester.dev/docs/usage/testdrive
if ($null -eq (& $SafeCommands['Get-Variable'] -Name Pester -ValueOnly -ErrorAction $script:IgnoreErrorPreference)) {
# User has executed a test script directly instead of calling Invoke-Pester
$sessionState = Set-SessionStateHint -PassThru -Hint "Caller - Captured in Context" -SessionState $PSCmdlet.SessionState
$Pester = New-PesterState -Path (& $SafeCommands['Resolve-Path'] .) -TestNameFilter $null -TagFilter @() -SessionState SessionState
$Pester = New-PesterState -Path (& $SafeCommands['Resolve-Path'] .) -TestNameFilter $null -TagFilter @() -SessionState $sessionState
$script:mockTable = @{ }
}

Expand Down

0 comments on commit dece2a8

Please sign in to comment.