diff options
author | 6543 <6543@obermui.de> | 2021-07-21 04:37:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-21 03:37:00 +0100 |
commit | 09a4364b2197520c3c6bb0fbcac26eed77c3af2f (patch) | |
tree | 2386cac949fd14cd8a91088158e9d9ab0d24f64b /routers | |
parent | 0c3467ffb719eed9ed1d6a42be9491af44a1d14d (diff) | |
download | gitea-09a4364b2197520c3c6bb0fbcac26eed77c3af2f.tar.gz gitea-09a4364b2197520c3c6bb0fbcac26eed77c3af2f.zip |
Add TestPrepareWikiFileName (#16487) (#16498)
* Add TestPrepareWikiFileName
* use LsTree as LsFiles is index only
* ajust other tests
Co-authored-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'routers')
-rw-r--r-- | routers/web/repo/wiki_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/repo/wiki_test.go b/routers/web/repo/wiki_test.go index 8934a6619f..bcdb8023ac 100644 --- a/routers/web/repo/wiki_test.go +++ b/routers/web/repo/wiki_test.go @@ -81,7 +81,7 @@ func TestWiki(t *testing.T) { Wiki(ctx) assert.EqualValues(t, http.StatusOK, ctx.Resp.Status()) assert.EqualValues(t, "Home", ctx.Data["Title"]) - assertPagesMetas(t, []string{"Home", "Page With Image", "Page With Spaced Name"}, ctx.Data["Pages"]) + assertPagesMetas(t, []string{"Home", "Page With Image", "Page With Spaced Name", "Unescaped File"}, ctx.Data["Pages"]) } func TestWikiPages(t *testing.T) { @@ -91,7 +91,7 @@ func TestWikiPages(t *testing.T) { test.LoadRepo(t, ctx, 1) WikiPages(ctx) assert.EqualValues(t, http.StatusOK, ctx.Resp.Status()) - assertPagesMetas(t, []string{"Home", "Page With Image", "Page With Spaced Name"}, ctx.Data["Pages"]) + assertPagesMetas(t, []string{"Home", "Page With Image", "Page With Spaced Name", "Unescaped File"}, ctx.Data["Pages"]) } func TestNewWiki(t *testing.T) { |