Skip to content

Commit

Permalink
Forgot to fix all the references
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanbergstrom committed Mar 16, 2024
1 parent 0a75364 commit 3ad94f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/AnyPackage.Homebrew.Unit.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,13 @@ Describe "multi-source support" {
{Install-Package -Name $package -Source $altSource -ErrorAction Stop} | Should -Throw 'The specified source is not registered with the package provider.'
}
It 'registers an alternative package source' {
Register-PackageSource -Name $altSourceName -Location $altSourceLocation -Provider $providerShortName -PassThru | Where-Object {$_.Name -eq $altSourceName} | Should -Not -BeNullOrEmpty
Register-PackageSource -Name $altSource -Location $altSourceLocation -Provider $providerShortName -PassThru | Where-Object {$_.Name -eq $altSource} | Should -Not -BeNullOrEmpty
}
It 'searches for and installs the latest version of a package from an alternate source' {
Find-Package -Name $package -Source $altSourceName | Install-Package -PassThru | Where-Object {$_.Name -contains $package} | Should -Not -BeNullOrEmpty
Find-Package -Name $package -Source $altSource | Install-Package -PassThru | Where-Object {$_.Name -contains $package} | Should -Not -BeNullOrEmpty
}
It 'unregisters an alternative package source' {
Unregister-PackageSource -Name $altSourceName
Get-PackageSource | Where-Object {$_.Name -eq $altSourceName} | Should -BeNullOrEmpty
Unregister-PackageSource -Name $altSource
Get-PackageSource | Where-Object {$_.Name -eq $altSource} | Should -BeNullOrEmpty
}
}

0 comments on commit 3ad94f3

Please sign in to comment.