Skip to content

Commit 5bae516

Browse files
committed
changed mutation names to "resetPassword" & "confirmResetPassword"
1 parent 88912b1 commit 5bae516

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

spec/ParseGraphQLServer.spec.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7065,8 +7065,8 @@ describe('ParseGraphQLServer', () => {
70657065
await Parse.User.logOut();
70667066
const result = await apolloClient.mutate({
70677067
mutation: gql`
7068-
mutation RequestResetPassword($input: RequestResetPasswordInput!) {
7069-
requestResetPassword(input: $input) {
7068+
mutation ResetPassword($input: ResetPasswordInput!) {
7069+
resetPassword(input: $input) {
70707070
clientMutationId
70717071
ok
70727072
}
@@ -7080,8 +7080,8 @@ describe('ParseGraphQLServer', () => {
70807080
},
70817081
});
70827082

7083-
expect(result.data.requestResetPassword.clientMutationId).toEqual(clientMutationId);
7084-
expect(result.data.requestResetPassword.ok).toBeTruthy();
7083+
expect(result.data.resetPassword.clientMutationId).toEqual(clientMutationId);
7084+
expect(result.data.resetPassword.ok).toBeTruthy();
70857085
});
70867086

70877087
it('should reset password', async () => {
@@ -7113,8 +7113,8 @@ describe('ParseGraphQLServer', () => {
71137113
await Parse.User.requestPasswordReset('[email protected]');
71147114
await apolloClient.mutate({
71157115
mutation: gql`
7116-
mutation ResetPassword($input: ResetPasswordInput!) {
7117-
resetPassword(input: $input) {
7116+
mutation ConfirmResetPassword($input: ConfirmResetPasswordInput!) {
7117+
confirmResetPassword(input: $input) {
71187118
clientMutationId
71197119
ok
71207120
}
@@ -7148,7 +7148,7 @@ describe('ParseGraphQLServer', () => {
71487148
},
71497149
},
71507150
});
7151-
7151+
console.log(result);
71527152
expect(result.data.logIn.clientMutationId).toEqual(clientMutationId);
71537153
expect(result.data.logIn.viewer.sessionToken).toBeDefined();
71547154
expect(typeof result.data.logIn.viewer.sessionToken).toBe('string');

0 commit comments

Comments
 (0)