Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions test/FindPSResourceTests/FindPSResourceLocal.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down