Skip to content

Commit

Permalink
Update Assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanzweifel committed Feb 6, 2024
1 parent 4cc9eb3 commit 17c2006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/FormatTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
it('can determine the age in days', function () {
Carbon::setTestNow(Carbon::create(2016, 1, 1)->startOfDay());

expect(Format::ageInDays(Carbon::now()))->toEqual('0.00 (1 second ago)');
expect(Format::ageInDays(Carbon::now()->subSeconds(5)))->toEqual('0.00 (5 seconds ago)');
expect(Format::ageInDays(Carbon::now()->subHour(1)))->toEqual('0.04 (1 hour ago)');
expect(Format::ageInDays(Carbon::now()->subHour(1)->subDay(1)))->toEqual('1.04 (1 day ago)');
expect(Format::ageInDays(Carbon::now()->subHour(1)->subMonths(1)))->toEqual('30.04 (4 weeks ago)');
Expand Down

0 comments on commit 17c2006

Please sign in to comment.