From f0b3a8869eac02a2d3794d142a4226d8d2ff5b6f Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Wed, 7 Mar 2018 03:46:44 +0100 Subject: [PATCH] Added test --- pages/database/database.pixy | 1 + pages/editor/editor.pixy | 3 ++- scripts/Utils.ts | 2 +- tests.go | 4 ++++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pages/database/database.pixy b/pages/database/database.pixy index 300d19e2..7d3f4b87 100644 --- a/pages/database/database.pixy +++ b/pages/database/database.pixy @@ -18,6 +18,7 @@ component Database option(value="SoundTrack") SoundTrack option(value="Thread") Thread option(value="User") User + option(value="Quote") Quote .widget-section.mountable label(for="field") where diff --git a/pages/editor/editor.pixy b/pages/editor/editor.pixy index e62c936d..c8b28fcf 100644 --- a/pages/editor/editor.pixy +++ b/pages/editor/editor.pixy @@ -9,8 +9,9 @@ component EditorTabs .tabs Tab("Editor", "pencil", "/editor") Tab("Search", "search", "/database") - Tab("Shoboi", "calendar", "/editor/shoboi") + Tab("Shoboi", "list", "/editor/shoboi") Tab("AniList", "list", "/editor/anilist") + Tab("Genres", "list", "/editor/genres") //- a.tab.ajax(href="/admin", aria-label="Admin") //- Icon("wrench") diff --git a/scripts/Utils.ts b/scripts/Utils.ts index cc164528..9eeaef9f 100644 --- a/scripts/Utils.ts +++ b/scripts/Utils.ts @@ -1,6 +1,6 @@ export function* findAll(className: string): IterableIterator { let elements = document.getElementsByClassName(className) - + for(let i = 0; i < elements.length; ++i) { yield elements[i] as HTMLElement } diff --git a/tests.go b/tests.go index bcdd408d..0a228c3e 100644 --- a/tests.go +++ b/tests.go @@ -208,6 +208,10 @@ var routeTests = map[string][]string{ "/api/animeepisodes/323", }, + "/anime/:id/episode/:episode-number": []string{ + "/anime/12230/episode/5", + }, + "/api/character/:id": []string{ "/api/character/6556", },