aboutsummaryrefslogtreecommitdiffstats
path: root/models/avatar_test.go
diff options
context:
space:
mode:
authora1012112796 <1012112796@qq.com>2021-04-28 20:35:06 +0800
committerGitHub <noreply@github.com>2021-04-28 12:35:06 +0000
commit1e877613bf941ae9bed17e5b6c5b118bd3107777 (patch)
treee6b34d3244a869dbde02e5194deab29d3d511328 /models/avatar_test.go
parentcc7d118b126cf451b1f3f9df72eb2f2e091d7ebc (diff)
downloadgitea-1e877613bf941ae9bed17e5b6c5b118bd3107777.tar.gz
gitea-1e877613bf941ae9bed17e5b6c5b118bd3107777.zip
add `/assets` as root dir of public files (#15219)
* add `/assets` as root dir of public files Signed-off-by: a1012112796 <1012112796@qq.com> * move serviceworker.js * make fmt * fix some link * fix test * Apply suggestions from code review Co-authored-by: silverwind <me@silverwind.io> * Apply suggestions from code review Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'models/avatar_test.go')
-rw-r--r--models/avatar_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/avatar_test.go b/models/avatar_test.go
index 89540705a0..bf99897d88 100644
--- a/models/avatar_test.go
+++ b/models/avatar_test.go
@@ -41,7 +41,7 @@ func TestHashEmail(t *testing.T) {
func TestSizedAvatarLink(t *testing.T) {
disableGravatar()
- assert.Equal(t, "/suburl/img/avatar_default.png",
+ assert.Equal(t, "/suburl/assets/img/avatar_default.png",
SizedAvatarLink("gitea@example.com", 100))
enableGravatar(t)