Skip to content

Commit

Permalink
Make sure the controller creates meta data
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Jul 3, 2024
1 parent f6693ea commit 54fd214
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/Feature/Http/Controllers/ChatControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,10 @@ public function test_adds_meta_data_and_date_range()
'date_range' => DateRangesEnum::ThisWeek->value,
])->assertOk();


$this->assertDatabaseCount('messages', 1);

$message = Message::first();
$this->assertEquals("this_week", $message->meta_data->date_range);
$this->assertEquals('this_week', $message->meta_data->date_range);
}

public function test_a_function_based_chat()
Expand Down

0 comments on commit 54fd214

Please sign in to comment.