1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-25 01:20:30 +00:00

Tests: Improve transclusion recursion test

Previously we were testing a tiddler transcluding itself, but it's clearer to make it an indirect recursion
This commit is contained in:
jeremy@jermolene.com 2022-04-26 14:02:08 +01:00
parent 9bcbb9131e
commit bdd99edfe8

View File

@ -143,7 +143,8 @@ describe("Widget module", function() {
var wiki = new $tw.Wiki(); var wiki = new $tw.Wiki();
// Add a tiddler // Add a tiddler
wiki.addTiddlers([ wiki.addTiddlers([
{title: "TiddlerOne", text: "<$transclude tiddler='TiddlerOne'/>\n"} {title: "TiddlerOne", text: "<$transclude tiddler='TiddlerTwo'/>\n"},
{title: "TiddlerTwo", text: "<$transclude tiddler='TiddlerOne'/>"}
]); ]);
// Test parse tree // Test parse tree
var parseTreeNode = {type: "widget", children: [ var parseTreeNode = {type: "widget", children: [