Skip to content

Commit 504e372

Browse files
authored
fix: remove () from type name in tests (#70)
Tests are failing on pwsh 7.4 because it stopped accepting `'System.Collections.ArrayList()'` as an argument to `New-Object`. Removing the extra parentheses should fix the issue.
1 parent 9986a81 commit 504e372

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎test/FeatureFlags.Tests.ps1‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -604,9 +604,9 @@ Describe 'Get-EvaluatedFeatureFlags' -Tag Features {
604604
Describe 'Out-EvaluatedFeaturesFiles' -Tag Features {
605605
Context 'Verify output file content' {
606606
BeforeAll {
607-
$global:featuresJsonContent = New-Object 'System.Collections.ArrayList()'
608-
$global:featuresIniContent = New-Object 'System.Collections.ArrayList()'
609-
$global:featuresEnvConfigContent = New-Object 'System.Collections.ArrayList()'
607+
$global:featuresJsonContent = New-Object 'System.Collections.ArrayList'
608+
$global:featuresIniContent = New-Object 'System.Collections.ArrayList'
609+
$global:featuresEnvConfigContent = New-Object 'System.Collections.ArrayList'
610610

611611
$serializedConfig = Get-Content -Raw "$PSScriptRoot\multiple-stages-features.json"
612612
Confirm-FeatureFlagConfig $serializedConfig

0 commit comments

Comments
 (0)