Skip to content

Commit

Permalink
chore: Fix test for Search-WtWinGetPackage
Browse files Browse the repository at this point in the history
  • Loading branch information
svrooij committed May 28, 2024
1 parent 2cbdf44 commit b55c026
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/WinTuner.Cmdlets.Tests/Search-WtWinGetPackage.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ Describe 'Search-WtWinGetPackage' {
}

It 'Should return a list of packages' {
$packages = Search-WtWinGetPackage -Name 'Firef'
$packages = Search-WtWinGetPackage 'Firef'
$packages | Should -Not -BeNullOrEmpty
}

It 'Should return a list of packages with a specific name' {
$packages = Search-WtWinGetPackage -Name 'Firef'
$packages = Search-WtWinGetPackage 'Firef'
$packages | ForEach-Object {
$_.PackageId | Should -Match 'Firef'
$_.PackageId | Should -Match '(?i)Firef'
}
}
}

0 comments on commit b55c026

Please sign in to comment.