@@ -7065,8 +7065,8 @@ describe('ParseGraphQLServer', () => {
7065
7065
await Parse . User . logOut ( ) ;
7066
7066
const result = await apolloClient . mutate ( {
7067
7067
mutation : gql `
7068
- mutation RequestResetPassword ($input: RequestResetPasswordInput !) {
7069
- requestResetPassword (input: $input) {
7068
+ mutation ResetPassword ($input: ResetPasswordInput !) {
7069
+ resetPassword (input: $input) {
7070
7070
clientMutationId
7071
7071
ok
7072
7072
}
@@ -7080,8 +7080,8 @@ describe('ParseGraphQLServer', () => {
7080
7080
} ,
7081
7081
} ) ;
7082
7082
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 ( ) ;
7085
7085
} ) ;
7086
7086
7087
7087
it ( 'should reset password' , async ( ) => {
@@ -7113,8 +7113,8 @@ describe('ParseGraphQLServer', () => {
7113
7113
await Parse . User . requestPasswordReset ( '[email protected] ' ) ;
7114
7114
await apolloClient . mutate ( {
7115
7115
mutation : gql `
7116
- mutation ResetPassword ($input: ResetPasswordInput !) {
7117
- resetPassword (input: $input) {
7116
+ mutation ConfirmResetPassword ($input: ConfirmResetPasswordInput !) {
7117
+ confirmResetPassword (input: $input) {
7118
7118
clientMutationId
7119
7119
ok
7120
7120
}
@@ -7148,7 +7148,7 @@ describe('ParseGraphQLServer', () => {
7148
7148
} ,
7149
7149
} ,
7150
7150
} ) ;
7151
-
7151
+ console . log ( result ) ;
7152
7152
expect ( result . data . logIn . clientMutationId ) . toEqual ( clientMutationId ) ;
7153
7153
expect ( result . data . logIn . viewer . sessionToken ) . toBeDefined ( ) ;
7154
7154
expect ( typeof result . data . logIn . viewer . sessionToken ) . toBe ( 'string' ) ;
0 commit comments