From bdd99edfe8c5d791309b1eac536f434b14b07bd0 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Tue, 26 Apr 2022 14:02:08 +0100 Subject: [PATCH] Tests: Improve transclusion recursion test Previously we were testing a tiddler transcluding itself, but it's clearer to make it an indirect recursion --- editions/test/tiddlers/tests/test-widget.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editions/test/tiddlers/tests/test-widget.js b/editions/test/tiddlers/tests/test-widget.js index ac90c39c3..19848e761 100755 --- a/editions/test/tiddlers/tests/test-widget.js +++ b/editions/test/tiddlers/tests/test-widget.js @@ -143,7 +143,8 @@ describe("Widget module", function() { var wiki = new $tw.Wiki(); // Add a tiddler 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 var parseTreeNode = {type: "widget", children: [