(login: string)
| 17 | * Creates a mock raw user [REST API] |
| 18 | */ |
| 19 | export function mockRawUser(login: string): RawUser { |
| 20 | return { |
| 21 | login, |
| 22 | id: 1, |
| 23 | node_id: 'MDQ6VXNlcjE=', |
| 24 | avatar_url: 'https://avatars.githubusercontent.com/u/583231?v=4' as Link, |
| 25 | gravatar_id: '', |
| 26 | url: `https://api.github.com/users/${login}` as Link, |
| 27 | html_url: `https://github.com/${login}` as Link, |
| 28 | followers_url: `https://api.github.com/users/${login}/followers` as Link, |
| 29 | following_url: |
| 30 | `https://api.github.com/users/${login}/following{/other_user}` as Link, |
| 31 | gists_url: `https://api.github.com/users/${login}/gists{/gist_id}` as Link, |
| 32 | starred_url: |
| 33 | `https://api.github.com/users/${login}/starred{/owner}{/repo}` as Link, |
| 34 | subscriptions_url: |
| 35 | `https://api.github.com/users/${login}/subscriptions` as Link, |
| 36 | organizations_url: `https://api.github.com/users/${login}/orgs` as Link, |
| 37 | repos_url: `https://api.github.com/users/${login}/repos` as Link, |
| 38 | events_url: |
| 39 | `https://api.github.com/users/${login}/events{/privacy}` as Link, |
| 40 | received_events_url: |
| 41 | `https://api.github.com/users/${login}/received_events` as Link, |
| 42 | type: 'User', |
| 43 | site_admin: false, |
| 44 | } satisfies RawUser; |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * Creates a mock author fragment [GraphQL API] |
no outgoing calls
no test coverage detected