Fix some linting issues

This commit is contained in:
Jesse Hines 2025-08-02 10:16:39 -04:00
parent 9a84c98098
commit c3cdd87e09
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -74,9 +74,9 @@ export default class OpenTabSettingsPlugin extends Plugin {
}
}
async registerMonkeyPatches() {
registerMonkeyPatches() {
const plugin = this;
const oldGetUnpinnedLeaf = this.app.workspace.getUnpinnedLeaf;
const oldGetUnpinnedLeaf = this.app.workspace.getUnpinnedLeaf; // eslint-disable-line @typescript-eslint/unbound-method
// Patch getLeaf to always open in new tab
this.register(monkeyAround.around(Workspace.prototype, {
@ -158,7 +158,7 @@ export default class OpenTabSettingsPlugin extends Plugin {
// workaround for a bug in kanban. See
// https://github.com/jesse-r-s-hines/obsidian-open-tab-settings/issues/25
// https://github.com/mgmeyers/obsidian-kanban/issues/1102
await this.app.workspace.setActiveLeaf(matches[0]);
this.app.workspace.setActiveLeaf(matches[0]);
result = undefined;
} else {
const activeLeaf = plugin.app.workspace.getActiveViewOfType(View)?.leaf;

View file

@ -51,7 +51,7 @@ describe('Misc', function() {
const value = await browser.executeObsidian(async ({plugins}) => {
return plugins.openTabSettings.settings.openInNewTab;
})
expect(value).toBe(true);
expect(value).toEqual(true);
});
it('Test mod click', async function() {