From 1a7fb673c053502bd183fc17f7e732aab096885d Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sun, 18 Jun 2017 14:52:50 +0200 Subject: [PATCH] Fixed tests --- assets.go | 5 ----- tests.go | 20 ++++++++++---------- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/assets.go b/assets.go index 1b8ca125..dcb5c324 100644 --- a/assets.go +++ b/assets.go @@ -31,11 +31,6 @@ func init() { return ctx.TryWebP("images/brand/"+file, ".png") }) - // SVG icons - app.Get("/icons/:file", func(ctx *aero.Context) string { - return ctx.File("images/icons/svg/" + ctx.Get("file")) - }) - // Cover image app.Get("/images/cover/:file", func(ctx *aero.Context) string { file := strings.TrimSuffix(ctx.Get("file"), ".webp") diff --git a/tests.go b/tests.go index b52fb895..9da41aa3 100644 --- a/tests.go +++ b/tests.go @@ -10,14 +10,6 @@ func init() { "/+Akyoto/threads", }) - app.Test("/user/:nick/avatar", []string{ - "/+Akyoto/avatar", - }) - - app.Test("/user/:nick/avatar/small", []string{ - "/+Akyoto/avatar/small", - }) - // Pages app.Test("/anime/:id", []string{ "/anime/1", @@ -73,8 +65,16 @@ func init() { }) // Images - app.Test("/icons/:file", []string{ - "/icons/inbox", + app.Test("/images/avatars/large/:file", []string{ + "/images/avatars/large/4J6qpK1ve.webp", + }) + + app.Test("/images/avatars/small/:file", []string{ + "/images/avatars/small/4J6qpK1ve.webp", + }) + + app.Test("/images/brand/:file", []string{ + "/images/brand/64.webp", }) app.Test("/images/login/:file", []string{