From e3be04f1cb8875ca4ffbb7ea05348f788c59cabe Mon Sep 17 00:00:00 2001 From: timDeHof Date: Sun, 1 Dec 2024 20:12:08 -0500 Subject: [PATCH] refactor(sprints): move mock-data from sprints to global mocks directory The mock-data used in sprints.controller.spec.ts and sprints.service.spec.ts was moved to the global mocks directory. This change was made to improve the organization of the codebase, making it easier to locate and reuse mock data across different modules. --- src/sprints/sprints.controller.spec.ts | 2 +- src/sprints/sprints.service.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sprints/sprints.controller.spec.ts b/src/sprints/sprints.controller.spec.ts index 98bf459f..a1f3269d 100644 --- a/src/sprints/sprints.controller.spec.ts +++ b/src/sprints/sprints.controller.spec.ts @@ -2,7 +2,7 @@ import { Test, TestingModule } from '@nestjs/testing'; import { SprintsController } from './sprints.controller'; import { SprintsService } from './sprints.service'; import { CustomRequest } from '@/global/types/CustomRequest'; -import { createMockData, mockDate } from './mock-data'; +import { createMockData, mockDate } from '../global/mocks/mock-data'; import { CreateTeamMeetingDto } from './dto/create-team-meeting.dto'; import { UpdateTeamMeetingDto } from './dto/update-team-meeting.dto'; import { CreateAgendaDto } from './dto/create-agenda.dto'; diff --git a/src/sprints/sprints.service.spec.ts b/src/sprints/sprints.service.spec.ts index 54387d17..9e01eb8d 100644 --- a/src/sprints/sprints.service.spec.ts +++ b/src/sprints/sprints.service.spec.ts @@ -1,6 +1,6 @@ import { toBeArray } from "jest-extended"; import { SprintsService } from "./sprints.service"; -import { createMockData, helpers, mockDate } from "./mock-data"; +import { createMockData, helpers, mockDate } from "../global/mocks/mock-data"; import { prismaMock } from "@/prisma/singleton"; import { VoyageTeam,