Skip to content

Commit

Permalink
final resolves
Browse files Browse the repository at this point in the history
  • Loading branch information
prayanshchh committed Nov 9, 2024
1 parent 7e0242c commit 9737ca1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/resolvers/Mutation/updateUserProfile.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ describe("resolvers -> Mutation -> updateUserProfile", () => {
it(`updates if email not changed by user`, async () => {
const args: MutationUpdateUserProfileArgs = {
data: {
email: decryptEmail(testUser.email).decrypted,
email: testUser.email,
},
};

Expand All @@ -227,7 +227,7 @@ describe("resolvers -> Mutation -> updateUserProfile", () => {
it(`updates current user's user object when any single argument(email) is given w/0 changing other fields `, async () => {
const args: MutationUpdateUserProfileArgs = {
data: {
email: `email${nanoid().toLowerCase()}@gmail.com`,
email: testUser.email,
},
};

Expand Down Expand Up @@ -577,7 +577,7 @@ describe("resolvers -> Mutation -> updateUserProfile", () => {
it(`updates current user's user object and returns the object`, async () => {
const args: MutationUpdateUserProfileArgs = {
data: {
email: `email${nanoid().toLowerCase()}@gmail.com`,
email: testUser.email,
firstName: "newFirstName",
lastName: "newLastName",
birthDate: date,
Expand Down

0 comments on commit 9737ca1

Please sign in to comment.