1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Added test for !limit (not limit)

Added test for !limit (not limit) to ensure bug change works
This commit is contained in:
David Johnston 2013-10-01 11:27:26 +01:00
parent d321508437
commit 154d5f316b

View File

@ -141,6 +141,7 @@ describe("Filter tests", function() {
it("should handle the limit operator", 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("[!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("Tiddler Three");
expect(wiki.filterTiddlers("[prefix[Tid]sort[title]!limit[1]]").join(",")).toBe("TiddlerOne");
}); });
it("should handle the list operator", function() { it("should handle the list operator", function() {