From 0d09c488fc9dac1cc112bf6b48b91cb39423108b Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sun, 22 Oct 2017 17:02:36 +0200 Subject: [PATCH] Added more route tests --- tests.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tests.go b/tests.go index 51d3579c..0e8fe3e7 100644 --- a/tests.go +++ b/tests.go @@ -59,6 +59,18 @@ var routeTests = map[string][]string{ "/anime/1", }, + "/anime/:id/characters": []string{ + "/anime/1/characters", + }, + + "/anime/:id/episodes": []string{ + "/anime/1/episodes", + }, + + "/anime/:id/tracks": []string{ + "/anime/1/tracks", + }, + "/thread/:id": []string{ "/thread/HJgS7c2K", }, @@ -79,10 +91,22 @@ var routeTests = map[string][]string{ "/soundtrack/h0ac8sKkg", }, + "/soundtrack/:id/edit": []string{ + "/soundtrack/h0ac8sKkg/edit", + }, + + "/soundtracks/from/:index": []string{ + "/soundtracks/from/12", + }, + "/character/:id": []string{ "/character/6556", }, + "/compare/animelist/:nick-1/:nick-2": []string{ + "/compare/animelist/Akyoto/Scott", + }, + // API "/api/anime/:id": []string{ "/api/anime/1",