Skip to content

Commit 4f6f675

Browse files
committed
#4048 tsc check and prettier
1 parent 359e27d commit 4f6f675

File tree

6 files changed

+16
-12
lines changed

6 files changed

+16
-12
lines changed

src/backend/tests/unmocked/task.test.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import { financeMember, supermanAdmin, theVisitorGuest } from '../test-data/users.test-data.js';
2-
import {
3-
AccessDeniedException,
4-
HttpException,
5-
NotFoundException,
6-
DeletedException,
7-
} from '../../src/utils/errors.utils.js';
2+
import { AccessDeniedException, HttpException, NotFoundException, DeletedException } from '../../src/utils/errors.utils.js';
83
import { createTestOrganization, createTestTask, createTestUser, resetUsers } from '../test-utils.js';
94
import prisma from '../../src/prisma/prisma.js';
105
import TasksService from '../../src/services/tasks.services.js';

src/frontend/src/pages/CalendarPage/TaskClickPopup.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ export const TaskClickContent: React.FC<TaskClickContentProps> = ({ task, onClos
235235
{showEditModal && (
236236
<TaskFormModal
237237
task={task}
238-
teams={[]}
239238
modalShow={showEditModal}
240239
onHide={() => setShowEditModal(false)}
241240
onSubmit={handleEditSubmit}

src/frontend/src/pages/GanttPage/ProjectGanttChart/ProjectGanttChartPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ const ProjectGanttChartPage: FC = () => {
301301
teamTypes: [],
302302
changes: [],
303303
events: [],
304+
tasks: [],
304305
deleted: false
305306
};
306307

src/frontend/src/tests/test-support/mock-hooks.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export const mockEditProjectReturnValue = mockUseMutationResult<Task>(
6464
status: TaskStatus.IN_PROGRESS,
6565
priority: TaskPriority.Medium,
6666
wbsNum: { carNumber: 1, projectNumber: 1, workPackageNumber: 0 },
67+
wbsName: 'WP',
6768
notes: '',
6869
dateCreated: new Date(),
6970
createdBy: exampleAdminUser,
@@ -82,6 +83,7 @@ export const mockCreateTaskReturnValue = mockUseMutationResult<Task>(
8283
status: TaskStatus.IN_PROGRESS,
8384
priority: TaskPriority.Medium,
8485
wbsNum: { carNumber: 1, projectNumber: 1, workPackageNumber: 0 },
86+
wbsName: 'WP',
8587
notes: '',
8688
dateCreated: new Date(),
8789
createdBy: exampleAdminUser,

src/frontend/src/tests/test-support/test-data/tasks.stub.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { exampleWbsProject1 } from './wbs-numbers.stub';
1010
export const exampleTask1: Task = {
1111
taskId: 'i8f-rotwyv',
1212
wbsNum: exampleWbsProject1,
13+
wbsName: 'WP'
1314
title: 'Sketches',
1415
notes: 'drafting the sketches with very straight lines',
1516
dateCreated: new Date('2023-03-04T00:00:00-05:00'),
@@ -23,6 +24,7 @@ export const exampleTask1: Task = {
2324
export const exampleTask1DueSoon: Task = {
2425
taskId: 'i8f-rotwyv',
2526
wbsNum: exampleWbsProject1,
27+
wbsName: 'WP'
2628
title: 'Sketches',
2729
notes: 'drafting the sketches with very straight lines',
2830
dateCreated: new Date('2023-03-04T00:00:00-05:00'),

src/frontend/src/tests/test-support/test-data/work-packages.stub.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ export const exampleResearchWorkPackage: WorkPackage = {
5555
stage: WorkPackageStage.Research,
5656
blocking: [],
5757
teamTypes: [],
58-
events: []
58+
events: [],
59+
tasks: []
5960
};
6061

6162
export const exampleDesignWorkPackage: WorkPackage = {
@@ -101,7 +102,8 @@ export const exampleDesignWorkPackage: WorkPackage = {
101102
stage: WorkPackageStage.Design,
102103
blocking: [],
103104
teamTypes: [],
104-
events: []
105+
events: [],
106+
tasks: []
105107
};
106108

107109
export const exampleManufacturingWorkPackage: WorkPackage = {
@@ -137,7 +139,8 @@ export const exampleManufacturingWorkPackage: WorkPackage = {
137139
stage: WorkPackageStage.Manufacturing,
138140
blocking: [],
139141
teamTypes: [],
140-
events: []
142+
events: [],
143+
tasks: []
141144
};
142145

143146
export const exampleInstallWorkPackage: WorkPackage = {
@@ -173,7 +176,8 @@ export const exampleInstallWorkPackage: WorkPackage = {
173176
blocking: [],
174177
teamTypes: [],
175178
events: [],
176-
deleted: false
179+
deleted: false,
180+
tasks: []
177181
};
178182

179183
export const exampleWorkPackage5: WorkPackage = {
@@ -208,7 +212,8 @@ export const exampleWorkPackage5: WorkPackage = {
208212
projectName: 'project3',
209213
blocking: [],
210214
teamTypes: [],
211-
events: []
215+
events: [],
216+
tasks: []
212217
};
213218

214219
export const exampleAllWorkPackages: WorkPackage[] = [

0 commit comments

Comments
 (0)