Skip to content

Commit

Permalink
Fixed yarn tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pepermao committed Jul 17, 2024
1 parent 4e3b82a commit b7fd423
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/tests/claim-review.e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ describe("ClaimReviewController (e2e)", () => {
.expect(200)
.expect(({ body }) => {
claimReviewId = body.review._id;
expect(body.review.claim).toEqual(claimId.toString());
expect(body.review.target).toEqual(claimId.toString());
expect(body.review.personality).toEqual(
personalitiesId[0].toString()
);
Expand Down
3 changes: 2 additions & 1 deletion server/tests/utils/ClaimReviewMock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export const ReviewMock = (claimId, personalitiesId, reportId, userId) => ({
isDeleted: false,
deletedAt: null,
personality: ObjectId(personalitiesId[0]),
claim: ObjectId(claimId),
target: ObjectId(claimId),
targetModel: "Claim",
usersId: [ObjectId(userId)],
report: ObjectId(reportId),
data_hash: "4be75d25957a3cc0dbc6975a6939a385",
Expand Down

0 comments on commit b7fd423

Please sign in to comment.