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

Function createContext

tests/unit/bases/calendarTaskEvents.test.ts:22–33  ·  view source on GitHub ↗
(
	overrides: Partial<CalendarTaskEventContext> = {}
)

Source from the content-addressed store, hash-verified

20}
21
22function createContext(
23 overrides: Partial<CalendarTaskEventContext> = {}
24): CalendarTaskEventContext {
25 return {
26 getPriorityColor: jest.fn((priority) =>
27 priority === "high" ? "#ff0000" : undefined
28 ),
29 isCompletedStatus: jest.fn((status) => status === "done"),
30 getThemeTextColor: jest.fn(() => "#202124"),
31 ...overrides,
32 };
33}
34
35describe("calendar task event builders", () => {
36 it("creates scheduled timed events with estimated duration", () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected