Skip to content

Commit e818e91

Browse files
authored
Fixed individual markdown tests. (#15802)
1 parent a98c09d commit e818e91

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/markup/markdown/markdown_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberOriginal file lineDiff line numberDiff line change
@@ -269,6 +269,9 @@ Here is a simple footnote,[^1] and here is a longer one.[^bignote]
269
}
269
}
270

270

271
func TestTotal_RenderUncyclo(t *testing.T) {
271
func TestTotal_RenderUncyclo(t *testing.T) {
272+
setting.AppURL = AppURL
273+
setting.AppSubURL = AppSubURL
274+
272
answers := testAnswers(util.URLJoin(AppSubURL, "wiki/"), util.URLJoin(AppSubURL, "wiki", "raw/"))
275
answers := testAnswers(util.URLJoin(AppSubURL, "wiki/"), util.URLJoin(AppSubURL, "wiki", "raw/"))
273

276

274
for i := 0; i < len(sameCases); i++ {
277
for i := 0; i < len(sameCases); i++ {
@@ -305,6 +308,9 @@ func TestTotal_RenderUncyclo(t *testing.T) {
305
}
308
}
306

309

307
func TestTotal_RenderString(t *testing.T) {
310
func TestTotal_RenderString(t *testing.T) {
311+
setting.AppURL = AppURL
312+
setting.AppSubURL = AppSubURL
313+
308
answers := testAnswers(util.URLJoin(AppSubURL, "src", "master/"), util.URLJoin(AppSubURL, "raw", "master/"))
314
answers := testAnswers(util.URLJoin(AppSubURL, "src", "master/"), util.URLJoin(AppSubURL, "raw", "master/"))
309

315

310
for i := 0; i < len(sameCases); i++ {
316
for i := 0; i < len(sameCases); i++ {

0 commit comments

Comments
 (0)