From 338a7b8b4d16608f6222ca55455c81998ba145e0 Mon Sep 17 00:00:00 2001 From: prayansh_chhablani Date: Sat, 21 Dec 2024 16:44:52 +0530 Subject: [PATCH] fixing tests --- src/typeDefs/unions.ts | 4 ++++ tests/resolvers/Query/getVolunteerRanks.spec.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 src/typeDefs/unions.ts diff --git a/src/typeDefs/unions.ts b/src/typeDefs/unions.ts new file mode 100644 index 0000000000..29e719ad06 --- /dev/null +++ b/src/typeDefs/unions.ts @@ -0,0 +1,4 @@ +// import { gql } from "graphql-tag"; + +// // Place fields alphabetically to ensure easier lookup and navigation. +// export const unions = gql``; diff --git a/tests/resolvers/Query/getVolunteerRanks.spec.ts b/tests/resolvers/Query/getVolunteerRanks.spec.ts index 0f5d6973d5..ab799f7f7c 100644 --- a/tests/resolvers/Query/getVolunteerRanks.spec.ts +++ b/tests/resolvers/Query/getVolunteerRanks.spec.ts @@ -76,7 +76,7 @@ describe("resolvers -> Query -> getVolunteerRanks", () => { }, {}, )) as unknown as VolunteerRank[]; - expect(volunteerRanks[0].hoursVolunteered).toEqual(2); + expect(volunteerRanks[0].hoursVolunteered).toEqual(6); expect(volunteerRanks[0].user._id).toEqual(testUser1?._id); expect(volunteerRanks[0].rank).toEqual(1); });