diff --git a/api/transaction/summary.go b/api/transaction/summary.go index b6b2b3c..10ee59b 100644 --- a/api/transaction/summary.go +++ b/api/transaction/summary.go @@ -80,7 +80,7 @@ func (h handler) GetSummaryBalanceHandler(c echo.Context) error { }, { Id: 3, - Date: "2024-10-29T19:00:00.000Z", + Date: "2024-10-28T19:00:00.000Z", Amount: 2000, Catergory: "Transport", TransactionType: "income", @@ -90,7 +90,7 @@ func (h handler) GetSummaryBalanceHandler(c echo.Context) error { }, { Id: 4, - Date: "2024-10-29T19:00:00.000Z", + Date: "2024-10-27T19:00:00.000Z", Amount: 2000, Catergory: "Transport", TransactionType: "expense", diff --git a/api/transaction/summary_calculation_test.go b/api/transaction/summary_calculation_test.go index 274d937..a7477bc 100644 --- a/api/transaction/summary_calculation_test.go +++ b/api/transaction/summary_calculation_test.go @@ -25,7 +25,7 @@ var mockSpecificTypeTransaction = []Transaction{ }, { Id: 3, - Date: "2024-04-29T19:00:00.000Z", + Date: "2024-04-28T19:00:00.000Z", Amount: 2000, Catergory: "Transport", TransactionType: "income", @@ -48,7 +48,7 @@ var mockTransaction = []Transaction{ }, { Id: 2, - Date: "2024-05-29T19:00:00.000Z", + Date: "2024-05-28T19:00:00.000Z", Amount: 2000, Catergory: "Transport", TransactionType: "income", @@ -68,7 +68,7 @@ var mockTransaction = []Transaction{ }, { Id: 4, - Date: "2024-04-29T19:00:00.000Z", + Date: "2024-04-26T19:00:00.000Z", Amount: 2000, Catergory: "Transport", TransactionType: "expense",