click - handler script to remove limit
}}
{{#each filters}}
- {{{mkws-translate facet}}}: <a class="mkws-removable mkwsRemovable" href="#" onclick="{{{click}}}">{{value}}</a>
+ <span>{{{mkws-translate facet}}}</span>: <a class="mkws-removable mkwsRemovable" href="#" onclick="{{{click}}}">{{value}}</a>
{{#unless @last}}|{{/unless}}
{{/each}}
}
});
- xit("facets", function () {
+ xit("facets sidebar", function () {
var list = $(".mkws-facet-title");
expect(list.length).toBe(3);
expect($(list[2]).text()).toBe(M("Authors"));
});
+ it("facets navigation", function () {
+ var list = $(".mkws-navi > span");
+
+ expect(list.length).toBe(2);
+
+ expect($(list[0]).text()).toBe(M("source"));
+ expect($(list[1]).text()).toBe(M("author"));
+ });
+
it("navigation", function () {
var list = $(".mkws-pager-desc > span");