We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96dcb86 commit 6d9a6a6Copy full SHA for 6d9a6a6
Tests/LMFilterValidation.Tests.ps1
@@ -243,11 +243,14 @@ Describe 'Filter Validation Config Generator' {
243
It 'Should have arrays of field names for each endpoint' {
244
$Config = Import-PowerShellDataFile "$PSScriptRoot/../Private/LMFilterValidationConfig.psd1"
245
foreach ($endpoint in $Config.Keys) {
246
- $Config[$endpoint] | Should -BeOfType [array]
247
- $Config[$endpoint].Count | Should -BeGreaterThan 0
+ # PowerShell data files with single items may be strings, so ensure it's an array
+ $fields = @($Config[$endpoint])
248
+ $fields | Should -Not -BeNullOrEmpty
249
+ $fields.Count | Should -BeGreaterThan 0
250
}
251
252
253
254
255
256
+
0 commit comments