Skip to content

Commit

Permalink
Fixed individual markdown tests. (go-gitea#15802)
Browse files Browse the repository at this point in the history
  • Loading branch information
KN4CK3R authored May 9, 2021
1 parent a98c09d commit e818e91
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/markup/markdown/markdown_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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++ {
Expand Down Expand Up @@ -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++ {
Expand Down

0 comments on commit e818e91

Please sign in to comment.