(
overrides: Partial<CalendarTaskEventContext> = {}
)
| 20 | } |
| 21 | |
| 22 | function 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 | |
| 35 | describe("calendar task event builders", () => { |
| 36 | it("creates scheduled timed events with estimated duration", () => { |
no outgoing calls
no test coverage detected