Added test for !limit (not limit)

Added test for !limit (not limit) to ensure bug change works
print-window-tiddler
David Johnston 2013-10-01 11:27:26 +01:00
rodzic d321508437
commit 154d5f316b
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -141,6 +141,7 @@ describe("Filter tests", function() {
it("should handle the limit operator", function() {
expect(wiki.filterTiddlers("[!is[system]sort[title]limit[2]]").join(",")).toBe("a fourth tiddler,one");
expect(wiki.filterTiddlers("[prefix[Tid]sort[title]limit[1]]").join(",")).toBe("Tiddler Three");
expect(wiki.filterTiddlers("[prefix[Tid]sort[title]!limit[1]]").join(",")).toBe("TiddlerOne");
});
it("should handle the list operator", function() {