Skip to content

Commit

Permalink
Uninstall doesnt return anything either
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanbergstrom committed Jan 29, 2024
1 parent a658349 commit 1f600f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/AnyPackage.Homebrew.Unit.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Describe 'DSC-compliant package installation and uninstallation' {
Get-Package -Name $package | Where-Object {$_.Name -contains $package} | Should -Not -BeNullOrEmpty
}
It 'silently uninstalls the locally installed package just installed' {
Uninstall-Package -Name $package | Where-Object {$_.Name -contains $package} | Should -Not -BeNullOrEmpty
{Uninstall-Package -Name $package} | Should -Not -Throw
}
}
Context 'cask' {
Expand All @@ -61,7 +61,7 @@ Describe 'DSC-compliant package installation and uninstallation' {
Get-Package -Name $package | Where-Object {$_.Name -contains $package} | Should -Not -BeNullOrEmpty
}
It 'silently uninstalls the locally installed package just installed' {
Uninstall-Package -Name $package | Where-Object {$_.Name -contains $package} | Should -Not -BeNullOrEmpty
{Uninstall-Package -Name $package} | Should -Not -Throw
}
}
}
Expand Down

0 comments on commit 1f600f1

Please sign in to comment.