You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to increase the test coverage for our Golang backend.
File to to test
handlers/tribes.go
Design
Write tests for the tribe handlers, the test should:
Should test that a wrong Post body returns a 406 error
Mock a call to relay /invoices that receives a body of sh {"amount": 0, "memo": "Budget Invoice"}
Should test that the amount passed by the user is equal to the amount sent for invoice generation
If the mock relay invoice call is successful, the payments get added to the payment history, the invoice gets added to the invoice list, and a success message is returned with a 200 Status
Tribes Handlers To Test
GenerateBudgetInvoice
Add tests to tribes_test.go
Acceptance Criteria
I have rebased and tested locally before submitting my PR
I can submit a PR within 2 days of taking the bounty
Context
We are trying to increase the test coverage for our Golang backend.
File to to test
handlers/tribes.go
Design
Write tests for the tribe handlers, the test should:
/invoices
that receives a body ofsh {"amount": 0, "memo": "Budget Invoice"}
Tribes Handlers To Test
Add tests to
tribes_test.go
Acceptance Criteria
References
Here is an example backend test
The text was updated successfully, but these errors were encountered: