Align test with actual values passed from the web

This commit is contained in:
Marcus Moore 2024-02-26 11:13:39 -08:00
parent c401c88702
commit 29d729171c
No known key found for this signature in database

View file

@ -156,12 +156,12 @@ class AssetCheckinTest extends TestCase
'hardware.checkin.store',
['assetId' => Asset::factory()->assignedToUser()->create()->id]
), [
'checkin_at' => '2023-01-02 12:34:56',
'checkin_at' => '2023-01-02',
'note' => 'hello'
]);
Event::assertDispatched(function (CheckoutableCheckedIn $event) {
return $event->action_date === '2023-01-02 12:34:56' && $event->note === 'hello';
return $event->action_date === '2023-01-02' && $event->note === 'hello';
}, 1);
}
}