Added test

This commit is contained in:
Eduard Urbach 2018-03-07 03:46:44 +01:00
parent 999323f850
commit f0b3a8869e
4 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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")

View File

@ -1,6 +1,6 @@
export function* findAll(className: string): IterableIterator<HTMLElement> {
let elements = document.getElementsByClassName(className)
for(let i = 0; i < elements.length; ++i) {
yield elements[i] as HTMLElement
}

View File

@ -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",
},