Fix up the tests

This commit is contained in:
Jeremy Ruston
2024-10-24 10:46:48 +01:00
parent 4af573aaf9
commit 96b85edfa2
3 changed files with 43 additions and 0 deletions
@@ -30,6 +30,13 @@ describe("Wiki-based tests", function() {
wiki.addTiddler(coreTiddler);
}
wiki.addTiddlers(readMultipleTiddlersTiddler(title));
// Unpack plugin tiddlers
wiki.readPluginInfo();
wiki.registerPluginTiddlers("plugin");
wiki.unpackPluginTiddlers();
wiki.addIndexersToWiki();
// Clear changes queue
wiki.clearTiddlerEventQueue();
// Complain if we don't have the ouput and expected results
if(!wiki.tiddlerExists("Output")) {
throw "Missing 'Output' tiddler";