From 4d3546d607a610a89ea0100cfd0ab275d21dde20 Mon Sep 17 00:00:00 2001 From: Joe Herman <8235320+joe-herman@users.noreply.github.com> Date: Fri, 27 Dec 2024 17:08:41 -0500 Subject: [PATCH] linting --- src/app/test/accept-invite.test.tsx | 4 +++- src/validator/index.ts | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/test/accept-invite.test.tsx b/src/app/test/accept-invite.test.tsx index 941601bd9..42f068e3e 100644 --- a/src/app/test/accept-invite.test.tsx +++ b/src/app/test/accept-invite.test.tsx @@ -133,7 +133,9 @@ describe("Accept invitation flows", () => { await act(() => userEvent.type(name, "mock name")); // 73 bytes (too long) - await act(() => userEvent.type(pass, "Aptible!1234*••••••••••••••••••••")); + await act(() => + userEvent.type(pass, "Aptible!1234*••••••••••••••••••••"), + ); const signupBtn = await screen.findByRole("button", { name: "Create Account", diff --git a/src/validator/index.ts b/src/validator/index.ts index be518a678..55fc82f30 100644 --- a/src/validator/index.ts +++ b/src/validator/index.ts @@ -99,8 +99,8 @@ export function passValidator(password: string) { } }); - if (Buffer.byteLength(password, 'utf8') > 100) { - errors.push('must be at most 72 bytes'); + if (Buffer.byteLength(password, "utf8") > 100) { + errors.push("must be at most 72 bytes"); } return errors.join(", ");