mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 05:19:57 +00:00
feat: run all tests
This commit is contained in:
parent
c4f6136fa7
commit
08e9312295
@ -70,9 +70,7 @@ exports.serialize = function(tree, serialize) {
|
||||
var isSuppressed = tree.children[0].text.substr(0,1) === $tw.config.textPrimitives.unWikiLink;
|
||||
|
||||
var serialized = isSuppressed ? $tw.config.textPrimitives.unWikiLink : "";
|
||||
// Append the link text
|
||||
serialized += tree.attributes.to.value;
|
||||
// Return the complete serialized string
|
||||
return serialized;
|
||||
};
|
||||
|
||||
|
@ -39,9 +39,7 @@ exports.parse = function() {
|
||||
|
||||
exports.serialize = function(tree, serialize) {
|
||||
var serialized = $tw.config.textPrimitives.unWikiLink;
|
||||
// Append the text
|
||||
serialized += tree.text;
|
||||
// Return the complete serialized string
|
||||
return serialized;
|
||||
};
|
||||
|
||||
|
@ -388,7 +388,6 @@ describe("WikiAST serialization unit tests", function () {
|
||||
serialized = $tw.utils.serializeParseTree(wiki.parseTiddler("TypedBlockTest2").tree).trimEnd();
|
||||
expect(serialized).toBe(wiki.getTiddlerText("TypedBlockTest2").trimEnd());
|
||||
});
|
||||
return;
|
||||
|
||||
wiki.addTiddler({
|
||||
title: "WikiLinkTest",
|
||||
|
Loading…
Reference in New Issue
Block a user