forked from gitea/gitea
1
0
Fork 0

Fixed individual markdown tests. (#15802)

This commit is contained in:
KN4CK3R 2021-05-09 15:29:49 +02:00 committed by GitHub
parent a98c09d2ae
commit e818e9150f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -269,6 +269,9 @@ Here is a simple footnote,[^1] and here is a longer one.[^bignote]
}
func TestTotal_RenderWiki(t *testing.T) {
setting.AppURL = AppURL
setting.AppSubURL = AppSubURL
answers := testAnswers(util.URLJoin(AppSubURL, "wiki/"), util.URLJoin(AppSubURL, "wiki", "raw/"))
for i := 0; i < len(sameCases); i++ {
@ -305,6 +308,9 @@ func TestTotal_RenderWiki(t *testing.T) {
}
func TestTotal_RenderString(t *testing.T) {
setting.AppURL = AppURL
setting.AppSubURL = AppSubURL
answers := testAnswers(util.URLJoin(AppSubURL, "src", "master/"), util.URLJoin(AppSubURL, "raw", "master/"))
for i := 0; i < len(sameCases); i++ {