MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / createPlugin

Function createPlugin

tests/unit/ui/taskCardTitle.test.ts:23–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21}
22
23function createPlugin(): TaskNotesPlugin {
24 return {
25 app: {
26 metadataCache: {
27 getFirstLinkpathDest: jest.fn(),
28 },
29 workspace: {
30 trigger: jest.fn(),
31 openLinkText: jest.fn(),
32 getLeaf: jest.fn(() => ({
33 openFile: jest.fn(),
34 })),
35 },
36 },
37 } as unknown as TaskNotesPlugin;
38}
39
40describe("taskCardTitle", () => {
41 beforeEach(() => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected