Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusjunges committed Mar 22, 2024
1 parent cdedea5 commit 2d0626e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Unit/Livewire/Questions/IndexTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
'to_id' => $user->id,
]);

$otherQuestions = Question::factory()->count(10)->create(['to_id' => $user->id]);
$otherQuestions = Question::factory()->count(10)->create(['to_id' => $user->id, 'answered_at' => now()]);

$component = Livewire::actingAs($user)->test(Index::class, [
'userId' => $user->id,
Expand Down

0 comments on commit 2d0626e

Please sign in to comment.