diff --git a/packages/fxa-graphql-api/src/gql/account.resolver.spec.ts b/packages/fxa-graphql-api/src/gql/account.resolver.spec.ts index edb4e141f1b..d86a11da644 100644 --- a/packages/fxa-graphql-api/src/gql/account.resolver.spec.ts +++ b/packages/fxa-graphql-api/src/gql/account.resolver.spec.ts @@ -436,7 +436,9 @@ describe('#integration - AccountResolver', () => { describe('deleteSecondaryEmail', () => { it('succeeds', async () => { - authClient.recoveryEmailDestroyWithJwt = jest.fn().mockResolvedValue(true); + authClient.recoveryEmailDestroyWithJwt = jest + .fn() + .mockResolvedValue(true); const result = await resolver.deleteSecondaryEmail(headers, { jwt: 'jwtToken', clientMutationId: 'testid', @@ -576,7 +578,7 @@ describe('#integration - AccountResolver', () => { state: 'In' as 'in', }) ).rejects.toThrow( - 'Invalid metrics opt state! State must be in or out, but recieved In.' + 'Invalid metrics opt state! State must be in or out, but received In.' ); }); }); diff --git a/packages/fxa-graphql-api/src/gql/account.resolver.ts b/packages/fxa-graphql-api/src/gql/account.resolver.ts index f4a1706c8b3..264a7047605 100644 --- a/packages/fxa-graphql-api/src/gql/account.resolver.ts +++ b/packages/fxa-graphql-api/src/gql/account.resolver.ts @@ -374,7 +374,11 @@ export class AccountResolver { @GqlXHeaders() headers: Headers, @Args('input', { type: () => EmailInput }) input: EmailInput ): Promise { - await this.authAPI.recoveryEmailDestroyWithJwt(input.jwt, input.email, headers); + await this.authAPI.recoveryEmailDestroyWithJwt( + input.jwt, + input.email, + headers + ); return { clientMutationId: input.clientMutationId }; } @@ -456,7 +460,7 @@ export class AccountResolver { if (!['in', 'out'].includes(input.state)) { throw new Error( - `Invalid metrics opt state! State must be in or out, but recieved ${input.state}.` + `Invalid metrics opt state! State must be in or out, but received ${input.state}.` ); }