()
| 22 | |
| 23 | function createGitHubUser(code?: string | null) { |
| 24 | const createEmail = () => ({ |
| 25 | email: faker.internet.email(), |
| 26 | verified: faker.datatype.boolean(), |
| 27 | primary: false, // <-- can only have one of these |
| 28 | visibility: faker.helpers.arrayElement(['public', null]), |
| 29 | }) |
| 30 | const primaryEmail = { |
| 31 | ...createEmail(), |
| 32 | verified: true, |