Skip to content

Commit

Permalink
fix: test runnable via jest mock
Browse files Browse the repository at this point in the history
  • Loading branch information
fnumatic committed Nov 13, 2022
1 parent 520438f commit 978ee36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Empty file added src/__mocks__/obsidian.ts
Empty file.
2 changes: 2 additions & 0 deletions src/utils/__tests__/extract-headings.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { CachedMetadata } from "obsidian";
import { TableOptions } from "src/types";
import { extractHeadings } from "../extract-headings";

jest.mock('obsidian');

describe("Extract headings", () => {
describe("build markdown text", () => {
const defaultHeadings = {
Expand Down

0 comments on commit 978ee36

Please sign in to comment.