1
0
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:
lin onetwo 2024-08-10 02:35:07 +08:00
parent c4f6136fa7
commit 08e9312295
3 changed files with 0 additions and 5 deletions

View File

@ -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;
};

View File

@ -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;
};

View File

@ -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",