Compare commits
1 Commits
35b35f5e40
...
55bd87c864
| Author | SHA1 | Date | |
|---|---|---|---|
| 55bd87c864 |
@ -355,7 +355,7 @@ func TestDalImpl_UpdateTransaction(t *testing.T) {
|
|||||||
mock.
|
mock.
|
||||||
ExpectExec(`
|
ExpectExec(`
|
||||||
UPDATE pfbudget.transactions
|
UPDATE pfbudget.transactions
|
||||||
SET date = \$2, description = \$3, value = \$4
|
SET date = \$2, description = \$3, amount = \$4
|
||||||
WHERE id = \$1`).
|
WHERE id = \$1`).
|
||||||
WithArgs(tt.args.t.Id, tt.args.t.Date, tt.args.t.Description, tt.args.t.Value).
|
WithArgs(tt.args.t.Id, tt.args.t.Date, tt.args.t.Description, tt.args.t.Value).
|
||||||
WillReturnResult(sqlmock.NewResult(0, 1))
|
WillReturnResult(sqlmock.NewResult(0, 1))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user