Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
alerickson committed Oct 31, 2024
1 parent 8fa482b commit b11afb0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/SavePSResourceTests/SavePSResourceLocalTests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,10 @@ Describe 'Test Save-PSResource for local repositories' -tags 'CI' {
$err.Count | Should -Not -BeNullOrEmpty
$err[0].FullyQualifiedErrorId | Should -BeExactly "InstallPackageFailure,Microsoft.PowerShell.PSResourceGet.Cmdlets.SavePSResource"
}

It "Save module using -Quiet" {
$res = Save-PSResource -Name $moduleName -Version "1.0.0" -Repository $localRepo -Path $SaveDir -PassThru -TrustRepository -Quiet
$res.Name | Should -Be $moduleName
$res.Version | Should -Be "1.0.0"
}
}

0 comments on commit b11afb0

Please sign in to comment.