We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c71c07f commit e6fe1d6Copy full SHA for e6fe1d6
1 file changed
src/backend/tests/design-reviews.test.ts
@@ -11,6 +11,17 @@ describe('Design Reviews', () => {
11
vi.clearAllMocks();
12
});
13
14
+ describe('getAllDesignReviews', () => {
15
+ test('Get All Design Reviews works when there are change requests', async () => {
16
+ vi.spyOn(prisma.design_Review, 'findMany').mockResolvedValue([]);
17
+
18
+ const res = await DesignReviewService.getAllDesignReviews();
19
20
+ expect(prisma.design_Review.findMany).toHaveBeenCalledTimes(1);
21
+ expect(res).toStrictEqual([]);
22
+ });
23
24
25
describe('Delete Design Review Tests', () => {
26
test('Delete Reimbursment Request fails when ID does not exist', async () => {
27
vi.spyOn(prisma.design_Review, 'findUnique').mockResolvedValue(null);
0 commit comments