Skip to content

Commit

Permalink
Update getVolunteerRanks.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
VanshikaSabharwal authored Dec 10, 2024
1 parent 62488ed commit f61f0a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/resolvers/Query/getVolunteerRanks.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe("resolvers -> Query -> getVolunteerRanks", () => {
},
{},
)) as unknown as VolunteerRank[];
expect(volunteerRanks[0].hoursVolunteered).toEqual(2);
expect(volunteerRanks[0].hoursVolunteered).toEqual(10);
expect(volunteerRanks[0].user._id).toEqual(testUser1?._id);
expect(volunteerRanks[0].rank).toEqual(1);
expect(volunteerRanks[1].hoursVolunteered).toEqual(8);
Expand All @@ -58,7 +58,7 @@ describe("resolvers -> Query -> getVolunteerRanks", () => {
},
{},
)) as unknown as VolunteerRank[];
expect(volunteerRanks[0].hoursVolunteered).toEqual(2);
expect(volunteerRanks[0].hoursVolunteered).toEqual(0);

Check failure on line 61 in tests/resolvers/Query/getVolunteerRanks.spec.ts

View workflow job for this annotation

GitHub Actions / Testing Application (22.x)

tests/resolvers/Query/getVolunteerRanks.spec.ts > resolvers -> Query -> getVolunteerRanks > getVolunteerRanks for weekly, descending, limit, no name

AssertionError: expected 2 to deeply equal +0 - Expected + Received - 0 + 2 ❯ tests/resolvers/Query/getVolunteerRanks.spec.ts:61:48
expect(volunteerRanks[0].user._id).toEqual(testUser1?._id);
expect(volunteerRanks[0].rank).toEqual(1);
});
Expand Down

0 comments on commit f61f0a3

Please sign in to comment.