Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
meetulr committed Feb 18, 2024
1 parent 3cf57a0 commit 903a2f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion INSTALLATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ This document provides instructions on how to set up and start a running instanc
- [Setting up the RECAPTCHA_SECRET_KEY](#setting-up-the-recaptcha_secret_key)
- [Setting up .env MAIL_USERNAME and MAIL_PASSWORD ReCAPTCHA Parameters](#setting-up-env-mail_username-and-mail_password-recaptcha-parameters)
- [Setting up SMTP Email Variables in the .env File](#setting-up-smtp-email-variables-in-the-env-file)
- [Setting up Logger configurations _(optional)_](#setting-up-logger-configurations-_optional_)
- [Setting up Logger configurations](#setting-up-logger-configurations)
- [Setting up COLORIZE_LOGS in .env file](#setting-up-colorize_logs-in-env-file)
- [Setting up LOG_LEVEL in .env file](#setting-up-log_level-in-env-file)
- [Importing Sample Database](#importing-sample-database)
Expand Down
2 changes: 1 addition & 1 deletion src/resolvers/Mutation/forgotPassword.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const forgotPassword: MutationResolvers["forgotPassword"] = async (
//Checks whether the old password is same as the new one
const isSameAsOldPassword = await bcrypt.compare(
newPassword,
oldHashedPassword
oldHashedPassword,
);

if (isSameAsOldPassword == true) {
Expand Down
8 changes: 4 additions & 4 deletions tests/resolvers/Mutation/forgotPassword.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ describe("resolvers -> Mutation -> forgotPassword", () => {
ACCESS_TOKEN_SECRET as string,
{
expiresIn: 99999999,
}
},
);

const args: MutationForgotPasswordArgs = {
Expand All @@ -86,7 +86,7 @@ describe("resolvers -> Mutation -> forgotPassword", () => {
await forgotPasswordResolver?.({}, args, {});
} catch (error: any) {
expect(error.message).toEqual(
"New password cannot be same as old password"
"New password cannot be same as old password",
);
}
});
Expand All @@ -104,7 +104,7 @@ describe("resolvers -> Mutation -> forgotPassword", () => {
process.env.NODE_ENV ?? "",
{
expiresIn: 99999999,
}
},
);

const args: MutationForgotPasswordArgs = {
Expand Down Expand Up @@ -135,7 +135,7 @@ describe("resolvers -> Mutation -> forgotPassword", () => {
ACCESS_TOKEN_SECRET as string,
{
expiresIn: 99999999,
}
},
);

const args: MutationForgotPasswordArgs = {
Expand Down

0 comments on commit 903a2f4

Please sign in to comment.