We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37d4638 commit d7820bbCopy full SHA for d7820bb
tests/mocks/github.ts
@@ -3,6 +3,7 @@ import { fileURLToPath } from 'node:url'
3
import { faker } from '@faker-js/faker'
4
import fsExtra from 'fs-extra'
5
import { HttpResponse, passthrough, http, type HttpHandler } from 'msw'
6
+import { USERNAME_MAX_LENGTH } from '#app/utils/user-validation.ts'
7
8
const { json } = HttpResponse
9
@@ -54,7 +55,7 @@ function createGitHubUser(code?: string | null) {
54
55
code,
56
accessToken: `${code}_mock_access_token`,
57
profile: {
- login: faker.internet.username(),
58
+ login: faker.internet.username().slice(0, USERNAME_MAX_LENGTH),
59
id: faker.number.int(),
60
name: faker.person.fullName(),
61
avatar_url: 'https://github.com/ghost.png',
0 commit comments