Skip to content

Commit

Permalink
nothing
Browse files Browse the repository at this point in the history
zjjhot committed Apr 18, 2024
1 parent f080391 commit 119dd5e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions routers/web/user/home_test.go
Original file line number Diff line number Diff line change
@@ -47,9 +47,7 @@ func TestArchivedIssues(t *testing.T) {
// Assert: One Issue (ID 30) from one Repo (ID 50) is retrieved, while nothing from archived Repo 51 is retrieved
assert.EqualValues(t, http.StatusOK, ctx.Resp.Status())

assert.EqualValues(t, map[int64]int64{50: 1}, ctx.Data["Counts"])
assert.Len(t, ctx.Data["Issues"], 1)
assert.Len(t, ctx.Data["Repos"], 1)
}

func TestIssues(t *testing.T) {
@@ -62,10 +60,8 @@ func TestIssues(t *testing.T) {
Issues(ctx)
assert.EqualValues(t, http.StatusOK, ctx.Resp.Status())

assert.EqualValues(t, map[int64]int64{1: 1, 2: 1}, ctx.Data["Counts"])
assert.EqualValues(t, true, ctx.Data["IsShowClosed"])
assert.Len(t, ctx.Data["Issues"], 1)
assert.Len(t, ctx.Data["Repos"], 2)
}

func TestPulls(t *testing.T) {

0 comments on commit 119dd5e

Please sign in to comment.