Skip to content

Commit 8059130

Browse files
committed
Check expected output instead of nott null or empty
1 parent 5ee941f commit 8059130

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/FindPSResourceTests/FindPSResourceContainerRegistryServer.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,10 @@ Describe 'Test Find-PSResource for MAR Repository' -tags 'CI' {
315315
$res = Find-PSResource -Repository 'MAR' -Name 'Az' -Version '14.4.0'
316316

317317
# Version defined by "ModuleVersion"
318-
$res.Dependencies.Where{$_.'Name' -eq 'Az.Accounts'}.'VersionRange'.ToString() | Should -Not -Be '(, )'
318+
$res.Dependencies.Where{$_.'Name' -eq 'Az.Accounts'}.'VersionRange'.ToString() | Should -Be '[5.3.0, )'
319319

320320
# Version defined by "RequiredVersion"
321-
$res.Dependencies.Where{$_.'Name' -eq 'Az.Resources'}.'VersionRange'.ToString() | Should -Not -Be '(, )'
321+
$res.Dependencies.Where{$_.'Name' -eq 'Az.Resources'}.'VersionRange'.ToString() | Should -Not -Be '[8.1.0, 8.1.0]'
322322
}
323323
}
324324

0 commit comments

Comments
 (0)