File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,13 @@ function GetPesterOs {
88 if ((GetPesterPsVersion) -lt 6 ) {
99 ' Windows'
1010 }
11- elseif (& $SafeCommands [' Get-Variable' ] - Name ' IsWindows' - ErrorAction ' SilentlyContinue ' - ValueOnly ) {
11+ elseif (& $SafeCommands [' Get-Variable' ] - Name ' IsWindows' - ErrorAction ' Ignore ' - ValueOnly ) {
1212 ' Windows'
1313 }
14- elseif (& $SafeCommands [' Get-Variable' ] - Name ' IsMacOS' - ErrorAction ' SilentlyContinue ' - ValueOnly ) {
14+ elseif (& $SafeCommands [' Get-Variable' ] - Name ' IsMacOS' - ErrorAction ' Ignore ' - ValueOnly ) {
1515 ' macOS'
1616 }
17- elseif (& $SafeCommands [' Get-Variable' ] - Name ' IsLinux' - ErrorAction ' SilentlyContinue ' - ValueOnly ) {
17+ elseif (& $SafeCommands [' Get-Variable' ] - Name ' IsLinux' - ErrorAction ' Ignore ' - ValueOnly ) {
1818 ' Linux'
1919 }
2020 else {
Original file line number Diff line number Diff line change 7272 END {
7373 if ($Name ) {
7474 $operator = $AssertionOperators.Values | & $SafeCommands [' Where-Object' ] { $Name -eq $_.Name -or $_.Alias -contains $Name }
75- $commandInfo = & $SafeCommands [' Get-Command' ] - Name $operator.InternalName - ErrorAction SilentlyContinue
76- $help = & $SafeCommands [' Get-Help' ] - Name $operator.InternalName - Examples - ErrorAction SilentlyContinue
75+ $commandInfo = & $SafeCommands [' Get-Command' ] - Name $operator.InternalName - ErrorAction Ignore
76+ $help = & $SafeCommands [' Get-Help' ] - Name $operator.InternalName - Examples - ErrorAction Ignore
7777
7878 if (($help | & $SafeCommands [' Measure-Object' ]).Count -ne 1 ) {
7979 & $SafeCommands [' Write-Warning' ] (" No help found for Should operator '{0}'" -f ((Get-AssertionOperatorEntry $Name ).InternalName))
Original file line number Diff line number Diff line change 2424 }
2525
2626 $scope = 0
27- while ($null -eq (& $safeGetVariable - Name Error - Scope $scope - ErrorAction SilentlyContinue )) {
27+ while ($null -eq (& $safeGetVariable - Name Error - Scope $scope - ErrorAction Ignore )) {
2828 $scope ++
2929 }
3030
You can’t perform that action at this time.
0 commit comments