Skip to content

Commit

Permalink
#2223: expect
Browse files Browse the repository at this point in the history
  • Loading branch information
martin0he committed Mar 18, 2024
1 parent afadfad commit a4dfe72
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/backend/tests/design-reviews.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -506,9 +506,7 @@ describe('Design Reviews', () => {
describe('Mark user confirmation tests', () => {
test('Marking succeeds', async () => {
vi.spyOn(prisma.design_Review, 'findUnique').mockResolvedValue(prismaDesignReview1);
const result = await expect(() =>
DesignReviewsService.markUserConfirmed(prismaDesignReview1.designReviewId, [1, 2], wonderwoman)
);
const result = await DesignReviewsService.markUserConfirmed(prismaDesignReview1.designReviewId, [1, 2], wonderwoman);

expect(prisma.design_Review.findUnique).toHaveBeenCalledTimes(0);
expect(result).toEqual(designReview5);
Expand Down

0 comments on commit a4dfe72

Please sign in to comment.