From 838895ccd1dec181a1f164ae266b8b32c827a9d7 Mon Sep 17 00:00:00 2001 From: H1rono Date: Fri, 7 Jun 2024 22:23:50 +0900 Subject: [PATCH] :white_check_mark: Pass tests --- router/transaction_test.go | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/router/transaction_test.go b/router/transaction_test.go index 30024988..4c426286 100644 --- a/router/transaction_test.go +++ b/router/transaction_test.go @@ -93,6 +93,8 @@ func TestHandlers_GetTransactions(t *testing.T) { Target: nil, Since: nil, Until: nil, + Limit: 100, + Offset: 0, Tag: nil, Group: nil, }). @@ -206,7 +208,9 @@ func TestHandlers_GetTransactions(t *testing.T) { h.Repository.MockTransactionRepository. EXPECT(). GetTransactions(c.Request().Context(), model.TransactionQuery{ - Sort: &sortQuery, + Sort: &sortQuery, + Limit: 100, + Offset: 0, }). Return(txs, nil) @@ -319,7 +323,9 @@ func TestHandlers_GetTransactions(t *testing.T) { h.Repository.MockTransactionRepository. EXPECT(). GetTransactions(c.Request().Context(), model.TransactionQuery{ - Sort: &sortQuery, + Sort: &sortQuery, + Limit: 100, + Offset: 0, }). Return(txs, nil) @@ -435,6 +441,8 @@ func TestHandlers_GetTransactions(t *testing.T) { EXPECT(). GetTransactions(c.Request().Context(), model.TransactionQuery{ Target: &targetQuery, + Limit: 100, + Offset: 0, }). Return(txs, nil) @@ -532,8 +540,10 @@ func TestHandlers_GetTransactions(t *testing.T) { h.Repository.MockTransactionRepository. EXPECT(). GetTransactions(c.Request().Context(), model.TransactionQuery{ - Since: &since, - Until: &until, + Since: &since, + Until: &until, + Limit: 100, + Offset: 0, }). Return(txs, nil)