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()