1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-02 14:29:55 +00:00

Update test-wikitext-serialize.js

This commit is contained in:
lin onetwo 2024-09-04 16:44:03 +08:00 committed by GitHub
parent f5fca2a4d4
commit 043f60b299
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -116,7 +116,7 @@ describe("WikiAST serialization unit tests", function () {
wiki.addTiddler({
title: "ConditionalTest",
text: "This is a <% if [{something}] %>Elephant<% elseif [{else}] %>Pelican<% else %>Crocodile<% endif %>",
text: "This is a <%if [{something}] %>Elephant<%elseif [{else}] %>Pelican<%else%>Crocodile<%endif%>",
});
it("should serialize conditional statements correctly", function () {
var serialized = $tw.utils.serializeParseTree(wiki.parseTiddler("ConditionalTest").tree).trimEnd();