Skip to content

Commit c73a3fe

Browse files
Remove last vestages of InputObject
1 parent 24fcc6a commit c73a3fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/AnyPackage.Chocolatey.Unit.Tests.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseDeclaredVarsMoreThanAssignments', '', Justification='PSSA does not understand Pester scopes well')]
2-
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseCmdletCorrectly', '', Justification='PSSA does not like explicitly using InputObject')]
32
param()
43

54
BeforeAll {
@@ -64,7 +63,7 @@ Describe 'pipeline-based package installation and uninstallation' {
6463
}
6564

6665
It 'silently installs the latest version of a package with explicit parameters' {
67-
Find-Package -Name $package | Install-Package -PassThru -InputObject $_ -Provider Chocolatey -ParamsGlobal -Parameters $parameters} | Where-Object {$_.Name -contains $package} | Should -Not -BeNullOrEmpty
66+
Find-Package -Name $package | Install-Package -PassThru -Provider Chocolatey -ParamsGlobal -Parameters $parameters | Where-Object {$_.Name -contains $package} | Should -Not -BeNullOrEmpty
6867
}
6968
It 'correctly passed parameters to the package' {
7069
Get-ChildItem -Path $installDir -ErrorAction SilentlyContinue | Should -Not -BeNullOrEmpty

0 commit comments

Comments
 (0)