Skip to content

Commit

Permalink
Fix Has-Flag on Powershell v4 and older
Browse files Browse the repository at this point in the history
On Powershell v4 and older the Has-Flag does not cast to the Pester.OutputTypes flagged enum automatically as it does on Powershell v5 which prevents Invoke-Pester from running
  • Loading branch information
nohwnd committed Jan 13, 2017
1 parent 63eb361 commit 369f665
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Pester.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,10 @@ function Has-Flag {
param
(
[Parameter(Mandatory = $true)]
[Pester.OutputTypes]
$Setting,
[Parameter(Mandatory = $true, ValueFromPipeline=$true)]
[Pester.OutputTypes]
$Value
)

Expand Down

0 comments on commit 369f665

Please sign in to comment.