Add missing obsidian mocks

This commit is contained in:
hjonasson 2023-11-17 10:51:38 +13:00
parent 8ccb8b42e2
commit af724c76c8
No known key found for this signature in database
GPG Key ID: 68D22124ADDEEB04
1 changed files with 3 additions and 3 deletions

View File

@ -3,9 +3,9 @@ module.exports = {
Workspace: {}, Workspace: {},
Plugin: class { Plugin: class {
addCommand() { } addCommand() { }
addRibbonIcon() { } addRibbonIcon() { return { addClass: () => { } } }
addSettingTab() { } addSettingTab() { }
addStatusBarItem() { return { setText: () => { } }; } addStatusBarItem() { return { setText: () => { } } }
loadData() { } loadData() { }
registerDomEvent() { } registerDomEvent() { }
registerInterval() { } registerInterval() { }
@ -19,4 +19,4 @@ module.exports = {
const JSDOM = require("jsdom").JSDOM const JSDOM = require("jsdom").JSDOM
const dom = new JSDOM() const dom = new JSDOM()
global.document = dom.window.document global.document = dom.window.document
global.window = dom.window global.window = dom.window