From 90c558e1b424cac6db4d8ebb5715c4cd3af727f8 Mon Sep 17 00:00:00 2001 From: anamnavi Date: Wed, 27 Aug 2025 09:30:59 -0400 Subject: [PATCH] comment out test now that that bug is solved --- .../FindPSResourceLocal.Tests.ps1 | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/test/FindPSResourceTests/FindPSResourceLocal.Tests.ps1 b/test/FindPSResourceTests/FindPSResourceLocal.Tests.ps1 index d88635e0e..cc7f261d2 100644 --- a/test/FindPSResourceTests/FindPSResourceLocal.Tests.ps1 +++ b/test/FindPSResourceTests/FindPSResourceLocal.Tests.ps1 @@ -74,15 +74,14 @@ Describe 'Test Find-PSResource for local repositories' -tags 'CI' { $res.Version | Should -Be "5.0.0" } - # TODO: bug with Save-PSResource - # It "find resource given Name, Version null (package containing nuspec only)" { - # # FindName() - # $pkgName = "PowerShell" - # Save-PSResource -Name $pkgName -Repository "NuGetGallery" -Path $localRepoUriAddress -AsNupkg -TrustRepository - # $res = Find-PSResource -Name $pkgName -Repository $localRepo - # $res.Name | Should -Be $pkgName - # $res.Repository | Should -Be $localRepo - # } + It "find resource given Name, Version null (package containing nuspec only)" { + # FindName() + $pkgName = "PowerShell" + Save-PSResource -Name $pkgName -Repository "NuGetGallery" -Path $localRepoUriAddress -AsNupkg -TrustRepository + $res = Find-PSResource -Name $pkgName -Repository $localRepo + $res.Name | Should -Be $pkgName + $res.Repository | Should -Be $localRepo + } It "find script without RequiredModules" { # FindName()