(
existingSchedules: Array<{ id: string; blockId: string }> = []
)
| 708 | |
| 709 | describe('createSchedulesForDeploy', () => { |
| 710 | const setupMockTransaction = ( |
| 711 | existingSchedules: Array<{ id: string; blockId: string }> = [] |
| 712 | ) => { |
| 713 | mockFrom.mockReturnValue({ where: vi.fn().mockResolvedValue(existingSchedules) }) |
| 714 | mockSelect.mockReturnValue({ from: mockFrom }) |
| 715 | } |
| 716 | |
| 717 | it('should return success with no schedule blocks', async () => { |
| 718 | const blocks: Record<string, BlockState> = { |