Implement first unit-tests #6

Merged
jacob1123 merged 9 commits from unit-tests into master 2022-02-09 23:41:08 +01:00
Showing only changes of commit 922041856f - Show all commits

View File

@ -28,8 +28,10 @@ func (h *Handler) transactionsForAccount(c *gin.Context) {
return return
} }
c.JSON(http.StatusOK, struct { c.JSON(http.StatusOK, TransactionsResponse{account, transactions})
Account postgres.Account }
Transactions []postgres.GetTransactionsForAccountRow
}{account, transactions}) type TransactionsResponse struct {
Account postgres.Account
Transactions []postgres.GetTransactionsForAccountRow
} }