We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36ea533 commit 45d1fc0Copy full SHA for 45d1fc0
models/git_diff_test.go
@@ -21,16 +21,16 @@ func assertLineEqual(t *testing.T, d1 *DiffLine, d2 *DiffLine) {
21
22
func TestDiffToHTML(t *testing.T) {
23
assertEqual(t, "+foo <span class=\"added-code\">bar</span> biz", diffToHTML([]dmp.Diff{
24
- {dmp.DiffEqual, "foo "},
25
- {dmp.DiffInsert, "bar"},
26
- {dmp.DiffDelete, " baz"},
27
- {dmp.DiffEqual, " biz"},
+ {Type: dmp.DiffEqual, Text: "foo "},
+ {Type: dmp.DiffInsert, Text: "bar"},
+ {Type: dmp.DiffDelete, Text: " baz"},
+ {Type: dmp.DiffEqual, Text: " biz"},
28
}, DiffLineAdd))
29
30
assertEqual(t, "-foo <span class=\"removed-code\">bar</span> biz", diffToHTML([]dmp.Diff{
31
32
- {dmp.DiffDelete, "bar"},
33
- {dmp.DiffInsert, " baz"},
34
+ {Type: dmp.DiffDelete, Text: "bar"},
+ {Type: dmp.DiffInsert, Text: " baz"},
35
}, DiffLineDel))
36
}
routers/repo/issue_label_test.go
@@ -32,7 +32,7 @@ func TestInitializeLabels(t *testing.T) {
ctx := test.MockContext(t, "user2/repo1/labels/initialize")
test.LoadUser(t, ctx, 2)
test.LoadRepo(t, ctx, 2)
- InitializeLabels(ctx, auth.InitializeLabelsForm{"Default"})
+ InitializeLabels(ctx, auth.InitializeLabelsForm{TemplateName: "Default"})
assert.EqualValues(t, http.StatusFound, ctx.Resp.Status())
37
models.AssertExistsAndLoadBean(t, &models.Label{
38
RepoID: 2,
0 commit comments