MCPcopy
hub / github.com/callumalpass/tasknotes / createTask

Function createTask

tests/unit/modals/taskEditChangeState.test.ts:12–24  ·  view source on GitHub ↗
(overrides: Partial<TaskInfo> = {})

Source from the content-addressed store, hash-verified

10const createMockApp = (mockApp: unknown): App => mockApp as App;
11
12function createTask(overrides: Partial<TaskInfo> = {}): TaskInfo {
13 return {
14 title: "Edit task",
15 status: "open",
16 priority: "normal",
17 path: "TaskNotes/Edit task.md",
18 archived: false,
19 contexts: [],
20 projects: [],
21 tags: [],
22 ...overrides,
23 };
24}
25
26function createState(
27 overrides: Partial<TaskEditModalChangeState> = {}

Callers 2

createStateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected