mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-11 04:52:59 +00:00
Fix tests broken in 1b6e8e1a79
This commit is contained in:
@@ -34,9 +34,7 @@ describe("Wiki-based tests", function() {
|
||||
if(!wiki.tiddlerExists("Output")) {
|
||||
throw "Missing 'Output' tiddler";
|
||||
}
|
||||
if(!wiki.tiddlerExists("ExpectedResult")) {
|
||||
throw "Missing 'ExpectedResult' tiddler";
|
||||
}
|
||||
if(wiki.tiddlerExists("ExpectedResult")) {
|
||||
// Construct the widget node
|
||||
var text = "{{Output}}\n\n";
|
||||
var widgetNode = createWidgetNode(parseText(text,wiki),wiki);
|
||||
@@ -51,6 +49,7 @@ describe("Wiki-based tests", function() {
|
||||
}
|
||||
// Test the rendering
|
||||
expect(wrapper.innerHTML).toBe(wiki.getTiddlerText("ExpectedResult"));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user