diff --git a/package.json b/package.json index 762e6842b..bf039335b 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/scripts/render-user-journey-documentation.ts b/scripts/render-user-journey-documentation.ts index a237ca7a4..d77bc5a40 100644 --- a/scripts/render-user-journey-documentation.ts +++ b/scripts/render-user-journey-documentation.ts @@ -95,8 +95,8 @@ const htmlContent = ` return ` ${renderRouterPageLink( - currentState - )} 🏁 + currentState + )} 🏁 `; } diff --git a/src/components/account-recovery/change-security-codes-confirmation/tests/change-security-codes-confirmation-controller.test.ts b/src/components/account-recovery/change-security-codes-confirmation/tests/change-security-codes-confirmation-controller.test.ts index a4e5678fd..b59c1def7 100644 --- a/src/components/account-recovery/change-security-codes-confirmation/tests/change-security-codes-confirmation-controller.test.ts +++ b/src/components/account-recovery/change-security-codes-confirmation/tests/change-security-codes-confirmation-controller.test.ts @@ -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 = "security.codes.changed@testtwofactorauth.org"; - 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 = + "security.codes.changed@testtwofactorauth.org"; + 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", () => { diff --git a/src/components/authorize/kms-decryption-service.ts b/src/components/authorize/kms-decryption-service.ts index 47d3e6ea4..5fd67a481 100644 --- a/src/components/authorize/kms-decryption-service.ts +++ b/src/components/authorize/kms-decryption-service.ts @@ -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; } diff --git a/yarn.lock b/yarn.lock index e5e8f5a45..c6f5f217c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"