mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-10-06 02:40:44 +00:00
Remove tests related to obsolete changes to boot.js
Should have been part of 2f494ba152
This commit is contained in:
parent
bf4a187ee1
commit
15ea3ffa9a
@ -20,9 +20,7 @@ describe("Utility tests", function() {
|
||||
expect(psa(" Tiddler8")).toEqual(["Tiddler8"]);
|
||||
expect(psa("Tiddler8 ")).toEqual(["Tiddler8"]);
|
||||
expect(psa("Tiddler8 two")).toEqual(["Tiddler8","two"]);
|
||||
expect(psa("Tiddler8 two [[]]")).toEqual(["Tiddler8","two",""]);
|
||||
expect(psa(" Tiddler8 two ")).toEqual(["Tiddler8","two"]);
|
||||
expect(psa(" [[Tidd\tler8]] [[spl\nit]]")).toEqual(["Tidd\tler8","spl\nit"]);
|
||||
expect(psa(" Tidd\u00a0ler8 two ")).toEqual(["Tidd\u00a0ler8","two"]);
|
||||
expect(psa(" [[Tidd\u00a0ler8]] two ")).toEqual(["Tidd\u00a0ler8","two"]);
|
||||
});
|
||||
@ -53,16 +51,14 @@ describe("Utility tests", function() {
|
||||
it("should handle stringifying a string array", function() {
|
||||
var str = $tw.utils.stringifyList;
|
||||
expect(str([])).toEqual("");
|
||||
expect(str([""])).toEqual("[[]]");
|
||||
expect(str(["Tiddler8"])).toEqual("Tiddler8");
|
||||
expect(str(["Tiddler8 "])).toEqual("[[Tiddler8 ]]");
|
||||
expect(str(["A+B", "A-B", "A=B"])).toEqual("A+B A-B A=B");
|
||||
expect(str(["A\nB", "A\tB"])).toEqual("[[A\nB]] [[A\tB]]");
|
||||
expect(str(["A B"])).toEqual("[[A B]]");
|
||||
// Starting special characters aren't treated specially,
|
||||
// even though this makes a list incompatible with a filter parser.
|
||||
expect(str(["+T", "-T", "~T", "=T", "$T"])).toEqual("+T -T ~T =T $T");
|
||||
expect(str(["A", "", "B"])).toEqual("A [[]] B");
|
||||
expect(str(["A", "", "B"])).toEqual("A B");
|
||||
});
|
||||
|
||||
it("stringifyList shouldn't interfere with setting variables to negative numbers", function() {
|
||||
|
Loading…
Reference in New Issue
Block a user