aboutsummaryrefslogtreecommitdiff
path: root/internal/gitutil/diff_test.go
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-03-09 02:08:53 +0800
committerᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-03-09 02:08:53 +0800
commite87f1107ca74c267ec0ef07054085b7a7871eb77 (patch)
tree95c7a8aaddbabcc16f74f8d8b3a15ee5e1c7b527 /internal/gitutil/diff_test.go
parentbebaf4c1122d641affbeaead2b77807072bc51a7 (diff)
commit: fix unexpected truncation in title
The commit message should not be treated as locale at all.
Diffstat (limited to 'internal/gitutil/diff_test.go')
-rw-r--r--internal/gitutil/diff_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/gitutil/diff_test.go b/internal/gitutil/diff_test.go
index b651b088..65c5df65 100644
--- a/internal/gitutil/diff_test.go
+++ b/internal/gitutil/diff_test.go
@@ -28,7 +28,7 @@ func Test_diffsToHTML(t *testing.T) {
{Type: dmp.DiffEqual, Text: " biz"},
},
lineType: git.DiffLineAdd,
- expHTML: template.HTML(`+ foo <span class="added-code">bar</span> biz`),
+ expHTML: template.HTML(`+foo <span class="added-code">bar</span> biz`),
},
{
diffs: []dmp.Diff{
@@ -38,7 +38,7 @@ func Test_diffsToHTML(t *testing.T) {
{Type: dmp.DiffEqual, Text: " biz"},
},
lineType: git.DiffLineDelete,
- expHTML: template.HTML(`- foo <span class="removed-code">bar</span> biz`),
+ expHTML: template.HTML(`-foo <span class="removed-code">bar</span> biz`),
},
}
for _, test := range tests {