From 34c6f7f0ec5312e8386f86b01e16438a6babbe77 Mon Sep 17 00:00:00 2001 From: Nikita Bykov Date: Tue, 8 Sep 2020 13:59:03 +0300 Subject: [PATCH] Resolved comments --- pester-extensions.psm1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pester-extensions.psm1 b/pester-extensions.psm1 index b5ab964..b7607bd 100644 --- a/pester-extensions.psm1 +++ b/pester-extensions.psm1 @@ -11,9 +11,9 @@ function Get-CommandResult { [string] $Command, [switch] $Multiline ) - # CMD trick to suppress and show error output because some commands write to stderr (for example, "python --version") + # CMD and bash trick to suppress and show error output because some commands write to stderr (for example, "python --version") If ($IsWindows) { - [string[]]$output = & $env:comspec /c "$Command 2>&1" + $output = & $env:comspec /c "$Command 2>&1" } else { $output = & bash -c "$Command 2>&1" } @@ -27,7 +27,7 @@ function Get-CommandResult { function ShouldReturnZeroExitCode { Param( - [string] $ActualValue, + [String] $ActualValue, [switch] $Negate, [string] $Because # This parameter is unused by we need it to match Pester asserts signature )