Skip to content

Commit

Permalink
✅ Pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
H1rono committed Jun 7, 2024
1 parent 09cfe80 commit 838895c
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions router/transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ func TestHandlers_GetTransactions(t *testing.T) {
Target: nil,
Since: nil,
Until: nil,
Limit: 100,
Offset: 0,
Tag: nil,
Group: nil,
}).
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 838895c

Please sign in to comment.