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 7a507ce commit 7d1a92bCopy full SHA for 7d1a92b
tests/mocks/github.ts
@@ -55,7 +55,7 @@ function createGitHubUser(code?: string | null) {
55
accessToken: `${code}_mock_access_token`,
56
profile: {
57
login: faker.internet.username(),
58
- id: faker.string.uuid(),
+ id: faker.number.int(),
59
name: faker.person.fullName(),
60
avatar_url: 'https://github.com/ghost.png',
61
emails: emails.map((e) => e.email),
@@ -166,7 +166,7 @@ export const handlers: Array<HttpHandler> = [
166
if (passthroughGitHub) return passthrough()
167
168
const mockUser = (await getGitHubUsers()).find(
169
- (u) => u.profile.id === params.id,
+ (u) => u.profile.id === Number(params.id),
170
)
171
if (mockUser) return json(mockUser.profile)
172
0 commit comments