diff --git a/__mocks__/obsidian.js b/__mocks__/obsidian.js index ddd82b7..1494721 100644 --- a/__mocks__/obsidian.js +++ b/__mocks__/obsidian.js @@ -3,9 +3,9 @@ module.exports = { Workspace: {}, Plugin: class { addCommand() { } - addRibbonIcon() { } + addRibbonIcon() { return { addClass: () => { } } } addSettingTab() { } - addStatusBarItem() { return { setText: () => { } }; } + addStatusBarItem() { return { setText: () => { } } } loadData() { } registerDomEvent() { } registerInterval() { } @@ -19,4 +19,4 @@ module.exports = { const JSDOM = require("jsdom").JSDOM const dom = new JSDOM() global.document = dom.window.document -global.window = dom.window \ No newline at end of file +global.window = dom.window