Skip to content

Commit

Permalink
refactor(sprints): move mock-data from sprints to global mocks directory
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
timDeHof committed Dec 2, 2024
1 parent 7e3a990 commit e3be04f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sprints/sprints.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion src/sprints/sprints.service.spec.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit e3be04f

Please sign in to comment.