1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 20:10:03 +00:00

Tests should use a dummy admin wiki

This commit is contained in:
Jeremy Ruston 2024-01-19 10:28:04 +00:00
parent 82fae45656
commit 4f37355a9f

View File

@ -17,7 +17,9 @@ if($tw.node) {
describe("SQL tiddler store", function() { describe("SQL tiddler store", function() {
// Create and initialise the tiddler store // Create and initialise the tiddler store
var SqlTiddlerStore = require("$:/plugins/tiddlywiki/multiwikiserver/sql-tiddler-store.js").SqlTiddlerStore; var SqlTiddlerStore = require("$:/plugins/tiddlywiki/multiwikiserver/sql-tiddler-store.js").SqlTiddlerStore;
const sqlTiddlerStore = new SqlTiddlerStore({}); const sqlTiddlerStore = new SqlTiddlerStore({
adminWiki: new $tw.Wiki()
});
sqlTiddlerStore.createTables(); sqlTiddlerStore.createTables();
// Create bags and recipes // Create bags and recipes
sqlTiddlerStore.createBag("bag-alpha"); sqlTiddlerStore.createBag("bag-alpha");