mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-12 12:51:22 +08:00
Make filtering work
This commit is contained in:
@@ -63,3 +63,12 @@ test "get filter for poems that share a common property", () ->
|
||||
deepEqual filter.getFilter(), {
|
||||
'Language': [ 'Czech' ]
|
||||
}
|
||||
|
||||
test "get filter for arbitrary poems using shortest key", () ->
|
||||
poemList.vrch.meta.Active = true
|
||||
poemList.muz.meta.Active = true
|
||||
filter.update()
|
||||
|
||||
deepEqual filter.getFilter(), {
|
||||
'Code': [ 'vrch', 'muz' ]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user