Custom top filtering links

This commit is contained in:
Vit Brunner
2015-01-06 18:55:42 +01:00
parent 3e96ca3a84
commit 0a8acdb43a
5 changed files with 47 additions and 5 deletions
+14
View File
@@ -70,3 +70,17 @@ test "get filter for arbitrary poems using shortest key", ->
deepEqual filter.getFilter(), {
'Code': [ 'vrch', 'muz' ]
}
test "set filter", ->
setPoems()
poemList.vrch.meta.Active = true
filter.update()
filter.setFilter {
'Language': [ 'English' ]
}
equal poemList.vrch.meta.Active, false
equal poemList.poe.meta.Active, true
deepEqual filter.getFilter(), {
'Code': [ 'poe' ]
}