mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-10 20:09:57 +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:
parent
9bcbb9131e
commit
bdd99edfe8
@ -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: [
|
||||||
|
Loading…
Reference in New Issue
Block a user