Skip to content

Commit 7cb6a2d

Browse files
committed
tests and prettier
1 parent 6bdfbff commit 7cb6a2d

2 files changed

Lines changed: 28 additions & 2 deletions

File tree

src/backend/src/prisma/seed.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,6 +1533,7 @@ const performSeed: () => Promise<void> = async () => {
15331533
Task_Status.IN_PROGRESS,
15341534
[joeShmoe.userId],
15351535
ner,
1536+
undefined,
15361537
new Date('01/01/2024')
15371538
);
15381539

@@ -1545,6 +1546,7 @@ const performSeed: () => Promise<void> = async () => {
15451546
Task_Status.IN_BACKLOG,
15461547
[joeShmoe.userId],
15471548
ner,
1549+
new Date('10/015/2023'),
15481550
new Date('01/01/2024')
15491551
);
15501552

@@ -1557,6 +1559,7 @@ const performSeed: () => Promise<void> = async () => {
15571559
Task_Status.IN_PROGRESS,
15581560
[joeShmoe.userId, joeBlow.userId],
15591561
ner,
1562+
undefined,
15601563
new Date('01/01/2024')
15611564
);
15621565

@@ -1570,6 +1573,7 @@ const performSeed: () => Promise<void> = async () => {
15701573
Task_Status.IN_PROGRESS,
15711574
[joeBlow.userId],
15721575
ner,
1576+
undefined,
15731577
new Date('2024-02-17T00:00:00-05:00')
15741578
);
15751579

@@ -1582,6 +1586,7 @@ const performSeed: () => Promise<void> = async () => {
15821586
Task_Status.IN_PROGRESS,
15831587
[thomasEmrax.userId],
15841588
ner,
1589+
new Date('2023-11-01T00:00:00-05:00'),
15851590
new Date('2024-01-01T00:00:00-05:00')
15861591
);
15871592

@@ -1594,6 +1599,7 @@ const performSeed: () => Promise<void> = async () => {
15941599
Task_Status.IN_PROGRESS,
15951600
[thomasEmrax.userId, joeBlow.userId, joeShmoe.userId],
15961601
ner,
1602+
undefined,
15971603
new Date('2024-01-20T00:00:00-05:00')
15981604
);
15991605

@@ -1606,6 +1612,7 @@ const performSeed: () => Promise<void> = async () => {
16061612
Task_Status.IN_PROGRESS,
16071613
[thomasEmrax.userId],
16081614
ner,
1615+
undefined,
16091616
new Date('2023-05-19T00:00:00-04:00')
16101617
);
16111618

@@ -1618,6 +1625,7 @@ const performSeed: () => Promise<void> = async () => {
16181625
Task_Status.DONE,
16191626
[joeShmoe.userId],
16201627
ner,
1628+
undefined,
16211629
new Date('01/01/2024')
16221630
);
16231631

@@ -1650,6 +1658,7 @@ const performSeed: () => Promise<void> = async () => {
16501658
Task_Status.DONE,
16511659
[thomasEmrax.userId, joeBlow.userId, joeShmoe.userId],
16521660
ner,
1661+
new Date('2023-01-15T00:00:00-04:00'),
16531662
new Date('2023-03-15T00:00:00-04:00')
16541663
);
16551664

@@ -1662,6 +1671,7 @@ const performSeed: () => Promise<void> = async () => {
16621671
Task_Status.IN_BACKLOG,
16631672
[],
16641673
ner,
1674+
undefined,
16651675
new Date('2023-04-01T00:00:00-04:00')
16661676
);
16671677

@@ -1674,6 +1684,7 @@ const performSeed: () => Promise<void> = async () => {
16741684
Task_Status.IN_PROGRESS,
16751685
[joeShmoe.userId],
16761686
ner,
1687+
undefined,
16771688
new Date('2024-01-01T00:00:00-05:00')
16781689
);
16791690

@@ -1686,6 +1697,7 @@ const performSeed: () => Promise<void> = async () => {
16861697
Task_Status.IN_PROGRESS,
16871698
[thomasEmrax.userId, joeShmoe.userId],
16881699
ner,
1700+
undefined,
16891701
new Date('2024-01-01T00:00:00-05:00')
16901702
);
16911703

@@ -1698,6 +1710,7 @@ const performSeed: () => Promise<void> = async () => {
16981710
Task_Status.DONE,
16991711
[thomasEmrax.userId],
17001712
ner,
1713+
new Date('2023-02-28T00:00:00-04:00'),
17011714
new Date('2023-10-31T00:00:00-04:00')
17021715
);
17031716

@@ -1710,6 +1723,7 @@ const performSeed: () => Promise<void> = async () => {
17101723
Task_Status.IN_BACKLOG,
17111724
[thomasEmrax, joeShmoe, joeBlow].map((user) => user.userId),
17121725
ner,
1726+
undefined,
17131727
new Date('2024-05-01T00:00:00-04:00')
17141728
);
17151729

@@ -1722,6 +1736,7 @@ const performSeed: () => Promise<void> = async () => {
17221736
Task_Status.IN_PROGRESS,
17231737
[joeShmoe.userId],
17241738
ner,
1739+
undefined,
17251740
new Date('2024-02-29T00:00:00-05:00')
17261741
);
17271742

@@ -1734,6 +1749,7 @@ const performSeed: () => Promise<void> = async () => {
17341749
Task_Status.IN_BACKLOG,
17351750
[joeShmoe.userId],
17361751
ner,
1752+
undefined,
17371753
new Date('2024-03-17T00:00:00-05:00')
17381754
);
17391755

@@ -1746,6 +1762,7 @@ const performSeed: () => Promise<void> = async () => {
17461762
Task_Status.DONE,
17471763
[joeBlow.userId],
17481764
ner,
1765+
undefined,
17491766
new Date('2024-04-15T00:00:00-04:00')
17501767
);
17511768

@@ -1758,6 +1775,7 @@ const performSeed: () => Promise<void> = async () => {
17581775
Task_Status.DONE,
17591776
[joeBlow.userId],
17601777
ner,
1778+
undefined,
17611779
new Date('2024-04-15T00:00:00-04:00')
17621780
);
17631781

@@ -1770,6 +1788,7 @@ const performSeed: () => Promise<void> = async () => {
17701788
Task_Status.IN_PROGRESS,
17711789
[regina.userId],
17721790
ner,
1791+
new Date('2023-05-01T00:00:00-04:00'),
17731792
new Date('2023-06-23T00:00:00-04:00')
17741793
);
17751794

src/frontend/src/utils/enum-pipes.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@
33
* See the LICENSE file in the repository root folder for details.
44
*/
55
import { yellow, green, blue, purple, grey, orange } from '@mui/material/colors';
6-
import { ChangeRequestStatus, ChangeRequestType, DesignReviewStatus, TaskStatus, WbsElementStatus, WorkPackageStage } from 'shared';
6+
import {
7+
ChangeRequestStatus,
8+
ChangeRequestType,
9+
DesignReviewStatus,
10+
TaskStatus,
11+
WbsElementStatus,
12+
WorkPackageStage
13+
} from 'shared';
714

815
// maps stage to the desired color
916
export const WorkPackageStageColorPipe: (stage: WorkPackageStage | undefined) => string = (stage) => {
@@ -104,4 +111,4 @@ export const TaskStatusTextPipe: (status: TaskStatus) => string = (status) => {
104111
case TaskStatus.DONE:
105112
return 'Done';
106113
}
107-
}
114+
};

0 commit comments

Comments
 (0)