Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 4x 11x 4x | import { TodoCategory } from "@calendar-todo/shared-types"; export const createMockCategory = ( overrides: Partial<TodoCategory> = {}, ): TodoCategory => ({ id: "test-category-id", name: "Test Category", color: "#3b82f6", createdAt: new Date(), order: 0, ...overrides, }); export const createMockCategories = (count: number = 2): TodoCategory[] => { return Array.from({ length: count }, (_, index) => createMockCategory({ id: `category-${index + 1}`, name: `Category ${index + 1}`, order: index, }), ); }; |