Skip to content

Commit

Permalink
remove unnecessary error handling in test
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Jan 22, 2025
1 parent dfd8032 commit 7079447
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/Search/CombTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,7 @@ public function it_filters_out_results_with_disallowed_words()
['title' => 'Chicken & Sweetcorn Soup', 'ingredients' => ['Chicken', 'Sweetcorn', 'Water']],
]);

try {
$results = $comb->lookUp('soup -tomato');
} catch (NoResultsFound $e) {
$results = [];
}
$results = $comb->lookUp('soup -tomato');

$this->assertEquals(['Chicken & Sweetcorn Soup'], collect($results['data'] ?? [])->pluck('data.title')->all());
}
Expand Down

0 comments on commit 7079447

Please sign in to comment.