mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-19 01:05:55 +00:00
fix: failing backend tests (#9310)
The tests introduced by #9181 are updated to match the new behaviour of #9182. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9310 Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org> Reviewed-by: Gusted <gusted@noreply.codeberg.org> Co-authored-by: Robert Wolff <mahlzahn@posteo.de> Co-committed-by: Robert Wolff <mahlzahn@posteo.de>
This commit is contained in:
parent
14c5462019
commit
30413435d8
1 changed files with 1 additions and 1 deletions
|
@ -1202,7 +1202,7 @@ func TestRender_FilePreview(t *testing.T) {
|
|||
`</table>` +
|
||||
`</div>` +
|
||||
`</div>`
|
||||
linkRendered := `<a href="` + commitFileURLFirstLine + `" rel="nofollow"><code>eeb243c339/path/to/file%20%23.txt (L1)</code></a>`
|
||||
linkRendered := `<a href="` + commitFileURLFirstLine + `" rel="nofollow"><code>eeb243c339/path/to/file #.txt (L1)</code></a>`
|
||||
|
||||
t.Run("file with strange characters in name", func(t *testing.T) {
|
||||
testRender(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue