Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vayras committed May 22, 2024
1 parent a220fee commit 3072ceb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions handlers/bounty_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,17 @@ func TestCreateOrEditBounty(t *testing.T) {
rr := httptest.NewRecorder()
handler := http.HandlerFunc(bHandler.CreateOrEditBounty)

phaseUuid := "08d7e988-5554-41b5-8b2f-1cdb79d84e29"
phasePriority := 1
existingBounty := db.NewBounty{
ID: 1,
Type: "coding",
Title: "first bounty",
Description: "first bounty description",
WorkspaceUuid: "work-1",
Assignee: "user1",
PhaseUuid: &phaseUuid,
PhasePriority: &phasePriority,
}
mockDb.On("UpdateBountyBoolColumn", mock.AnythingOfType("db.NewBounty"), "show").Return(existingBounty)
mockDb.On("GetBounty", uint(1)).Return(existingBounty).Once()
Expand Down

0 comments on commit 3072ceb

Please sign in to comment.