Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
afurgapil committed Jun 22, 2024
1 parent d7ac17a commit aaef749
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/utils/checkDate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestCheckDate(t *testing.T) {
name: ">1 days remaining",
borrowID: "borrow_id_1",
deliveryDate: time.Now().AddDate(0, 0, 30).Format("2006-01-02"),
want: 30,
want: 29,
wantErr: false,
},
{
Expand All @@ -34,7 +34,7 @@ func TestCheckDate(t *testing.T) {
name: "<0 days remaining",
borrowID: "borrow_id_3",
deliveryDate: time.Now().AddDate(0, 0, -30).Format("2006-01-02"),
want: -29,
want: -30,
wantErr: false,
},
}
Expand Down

0 comments on commit aaef749

Please sign in to comment.