0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-12 06:52:57 +02:00
This commit is contained in:
wxiaoguang 2026-04-02 16:42:12 +08:00
parent c7422748f8
commit 4074d5d1fd

View File

@ -1140,7 +1140,7 @@ func TestHighlightCodeLines(t *testing.T) {
ret := highlightCodeLinesForDiffFile(diffFile, true, []byte("a\nb\n"))
assert.Equal(t, map[int]template.HTML{
0: `<span class="n">a</span>` + nl,
1: `<span class="n">b</span>`,
1: `<span class="n">b</span>` + nl,
}, ret)
})
}