diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-01-08 02:27:36 +0800 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2020-01-07 18:27:36 +0000 |
commit | b9309e52f0b08a554107d888029d62f9b7904ca0 (patch) | |
tree | d8eb24e40b5a65c16a3b2447bf0bef0e9e865a6a /routers/repo/wiki_test.go | |
parent | e5d8e2d10c6798e57ac855f71b025b087b664799 (diff) | |
download | gitea-b9309e52f0b08a554107d888029d62f9b7904ca0.tar.gz gitea-b9309e52f0b08a554107d888029d62f9b7904ca0.zip |
Move wiki related funtions from models to services/wiki (#9355)
* Move wiki related funtions from models to services/wiki
Diffstat (limited to 'routers/repo/wiki_test.go')
-rw-r--r-- | routers/repo/wiki_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/repo/wiki_test.go b/routers/repo/wiki_test.go index 44fcd02035..843a8ddf2b 100644 --- a/routers/repo/wiki_test.go +++ b/routers/repo/wiki_test.go @@ -13,6 +13,7 @@ import ( "code.gitea.io/gitea/modules/auth" "code.gitea.io/gitea/modules/git" "code.gitea.io/gitea/modules/test" + wiki_service "code.gitea.io/gitea/services/wiki" "github.com/stretchr/testify/assert" ) @@ -29,7 +30,7 @@ func wikiEntry(t *testing.T, repo *models.Repository, wikiName string) *git.Tree entries, err := commit.ListEntries() assert.NoError(t, err) for _, entry := range entries { - if entry.Name() == models.WikiNameToFilename(wikiName) { + if entry.Name() == wiki_service.NameToFilename(wikiName) { return entry } } |