Skip to content

Commit

Permalink
Merge pull request #1548 from govuk-one-login/dependabot/npm_and_yarn…
Browse files Browse the repository at this point in the history
…/main/prettier-3.2.5

BAU: Bump prettier from 2.7.1 to 3.2.5
  • Loading branch information
BeckaL authored Jun 14, 2024
2 parents ae87e2e + fbd02d8 commit e230d74
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"nunjucks": "^3.2.3",
"pino": "^8.19.0",
"pino-http": "^9.0.0",
"prettier": "^2.7.1",
"prettier": "^3.2.5",
"qrcode": "^1.5.0",
"redis": "^4.6.13",
"uglify-js": "^3.14.5",
Expand Down
4 changes: 2 additions & 2 deletions scripts/render-user-journey-documentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ const htmlContent = `
return `
<tr>
<td id="current-state-${currentState}" colspan="5">${renderRouterPageLink(
currentState
)} 🏁</td>
currentState
)} 🏁</td>
</tr>
`;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,26 @@ describe("change security codes confirmation controller", () => {
});

describe("changeSecurityCodesConfirmationGet", () => {
[MFA_METHOD_TYPE.SMS, MFA_METHOD_TYPE.AUTH_APP].forEach(function (
mfaMethodType
) {
it(`should render the change security codes codes confirmation page for mfaMethodType ${mfaMethodType}`, async () => {
req.session.user.accountRecoveryVerifiedMfaType = mfaMethodType;
req.session.user.email = "[email protected]";
req.session.user.redactedPhoneNumber = "*******1234";

await changeSecurityCodesConfirmationGet()(
req as Request,
res as Response
);

expect(res.render).to.have.been.calledWith(
"account-recovery/change-security-codes-confirmation/index.njk",
{ mfaMethodType: mfaMethodType, phoneNumber: "*******1234" }
);
});
});
[MFA_METHOD_TYPE.SMS, MFA_METHOD_TYPE.AUTH_APP].forEach(
function (mfaMethodType) {
it(`should render the change security codes codes confirmation page for mfaMethodType ${mfaMethodType}`, async () => {
req.session.user.accountRecoveryVerifiedMfaType = mfaMethodType;
req.session.user.email =
"[email protected]";
req.session.user.redactedPhoneNumber = "*******1234";

await changeSecurityCodesConfirmationGet()(
req as Request,
res as Response
);

expect(res.render).to.have.been.calledWith(
"account-recovery/change-security-codes-confirmation/index.njk",
{ mfaMethodType: mfaMethodType, phoneNumber: "*******1234" }
);
});
}
);
});

describe("changeSecurityCodesConfirmationPost", () => {
Expand Down
5 changes: 2 additions & 3 deletions src/components/authorize/kms-decryption-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ export class KmsDecryptionService implements KmsDecryptionServiceInterface {
KeyId: this.kmsKeyId,
};

const decryptResponse: DecryptCommandOutput = await this.kmsClient.decrypt(
inputs
);
const decryptResponse: DecryptCommandOutput =
await this.kmsClient.decrypt(inputs);
return decryptResponse.Plaintext;
}

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4663,10 +4663,10 @@ prettier-linter-helpers@^1.0.0:
dependencies:
fast-diff "^1.1.2"

prettier@^2.7.1:
version "2.7.1"
resolved "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz"
integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==
prettier@^3.2.5:
version "3.2.5"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.2.5.tgz#e52bc3090586e824964a8813b09aba6233b28368"
integrity sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==

process-nextick-args@~2.0.0:
version "2.0.1"
Expand Down

0 comments on commit e230d74

Please sign in to comment.