Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-herman committed Dec 27, 2024
1 parent be9d486 commit 4d3546d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/app/test/accept-invite.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/validator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(", ");
Expand Down

0 comments on commit 4d3546d

Please sign in to comment.