Skip to content

Commit

Permalink
fix: remove () from type name in tests (#70)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lupino3 authored Jan 3, 2024
1 parent 9986a81 commit 504e372
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/FeatureFlags.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -604,9 +604,9 @@ Describe 'Get-EvaluatedFeatureFlags' -Tag Features {
Describe 'Out-EvaluatedFeaturesFiles' -Tag Features {
Context 'Verify output file content' {
BeforeAll {
$global:featuresJsonContent = New-Object 'System.Collections.ArrayList()'
$global:featuresIniContent = New-Object 'System.Collections.ArrayList()'
$global:featuresEnvConfigContent = New-Object 'System.Collections.ArrayList()'
$global:featuresJsonContent = New-Object 'System.Collections.ArrayList'
$global:featuresIniContent = New-Object 'System.Collections.ArrayList'
$global:featuresEnvConfigContent = New-Object 'System.Collections.ArrayList'

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

0 comments on commit 504e372

Please sign in to comment.