Skip to content

Commit

Permalink
make pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Oct 28, 2024
1 parent 582b8d3 commit 7d066a4
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions private/testing/Get-TestConfig.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,32 @@ function Get-TestConfig {
}

# sometimes the enumeration doesn't work, so we'll just hardcode it
if ($PSVersionTable.PSEdition -eq 'Core') {
$config['CommonParameters'] = "Verbose", "Debug", "ErrorAction", "WarningAction", "InformationAction", "ProgressAction", "ErrorVariable", "WarningVariable", "OutVariable", "OutBuffer", "PipelineVariable", "InformationVariable"
} else {
$config['CommonParameters'] = "Verbose", "Debug", "ErrorAction", "WarningAction", "InformationAction", "ErrorVariable", "WarningVariable", "OutVariable", "OutBuffer", "PipelineVariable", "InformationVariable"
}

if ($PSVersionTable.PSEdition -eq 'Core') {
$config['CommonParameters'] = "Verbose",
"Debug",
"ErrorAction",
"WarningAction",
"InformationAction",
"ProgressAction",
"ErrorVariable",
"WarningVariable",
"OutVariable",
"OutBuffer",
"PipelineVariable",
"InformationVariable"
} else {
$config['CommonParameters'] = "Verbose",
"Debug",
"ErrorAction",
"WarningAction",
"InformationAction",
"ErrorVariable",
"WarningVariable",
"OutVariable",
"OutBuffer",
"PipelineVariable",
"InformationVariable"
}

[pscustomobject]$config
}

0 comments on commit 7d066a4

Please sign in to comment.