1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-02-28 08:50:01 +00:00

Fix tests broken in 1b6e8e1a7930115a0a9c90d4d03fb6c1b135484e

This commit is contained in:
Jeremy Ruston 2024-05-29 08:36:52 +01:00
parent 1b6e8e1a79
commit 4274e8fd7f

View File

@ -34,9 +34,7 @@ describe("Wiki-based tests", function() {
if(!wiki.tiddlerExists("Output")) { if(!wiki.tiddlerExists("Output")) {
throw "Missing 'Output' tiddler"; throw "Missing 'Output' tiddler";
} }
if(!wiki.tiddlerExists("ExpectedResult")) { if(wiki.tiddlerExists("ExpectedResult")) {
throw "Missing 'ExpectedResult' tiddler";
}
// Construct the widget node // Construct the widget node
var text = "{{Output}}\n\n"; var text = "{{Output}}\n\n";
var widgetNode = createWidgetNode(parseText(text,wiki),wiki); var widgetNode = createWidgetNode(parseText(text,wiki),wiki);
@ -51,6 +49,7 @@ describe("Wiki-based tests", function() {
} }
// Test the rendering // Test the rendering
expect(wrapper.innerHTML).toBe(wiki.getTiddlerText("ExpectedResult")); expect(wrapper.innerHTML).toBe(wiki.getTiddlerText("ExpectedResult"));
}
}); });
}); });