Skip to content

Commit

Permalink
Remove Tsv field from returnedBots
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdulWahab3181 committed Jun 25, 2024
1 parent 3768e23 commit 4cb68e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions handlers/bots_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,11 @@ func TestGetListedBots(t *testing.T) {
assert.NoError(t, err)
assert.Equal(t, http.StatusOK, rr.Code)

// Remove Tsv field from returnedBots for comparison
for i := range returnedBots {
returnedBots[i].Tsv = ""
}

assert.ElementsMatch(t, []db.Bot{bot}, returnedBots)
})

Expand Down

0 comments on commit 4cb68e5

Please sign in to comment.