Fixed tests

This commit is contained in:
Eduard Urbach 2017-06-18 14:52:50 +02:00
parent 9ac7fda925
commit 1a7fb673c0
2 changed files with 10 additions and 15 deletions

View File

@ -31,11 +31,6 @@ func init() {
return ctx.TryWebP("images/brand/"+file, ".png") 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 // Cover image
app.Get("/images/cover/:file", func(ctx *aero.Context) string { app.Get("/images/cover/:file", func(ctx *aero.Context) string {
file := strings.TrimSuffix(ctx.Get("file"), ".webp") file := strings.TrimSuffix(ctx.Get("file"), ".webp")

View File

@ -10,14 +10,6 @@ func init() {
"/+Akyoto/threads", "/+Akyoto/threads",
}) })
app.Test("/user/:nick/avatar", []string{
"/+Akyoto/avatar",
})
app.Test("/user/:nick/avatar/small", []string{
"/+Akyoto/avatar/small",
})
// Pages // Pages
app.Test("/anime/:id", []string{ app.Test("/anime/:id", []string{
"/anime/1", "/anime/1",
@ -73,8 +65,16 @@ func init() {
}) })
// Images // Images
app.Test("/icons/:file", []string{ app.Test("/images/avatars/large/:file", []string{
"/icons/inbox", "/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{ app.Test("/images/login/:file", []string{