()
| 10 | }; |
| 11 | |
| 12 | function createTestTeam() { |
| 13 | const name = getTestRepoName(); |
| 14 | |
| 15 | const github = new Github({ |
| 16 | username: testUser.USERNAME, |
| 17 | password: testUser.PASSWORD, |
| 18 | auth: 'basic', |
| 19 | }); |
| 20 | |
| 21 | const org = github.getOrganization(testUser.ORGANIZATION); |
| 22 | |
| 23 | return org.createTeam({ |
| 24 | name, |
| 25 | privacy: 'closed', |
| 26 | }).then(({data: result}) => { |
| 27 | const team = github.getTeam(result.id); |
| 28 | return {team, name}; |
| 29 | }); |
| 30 | } |
| 31 | |
| 32 | let team; |
| 33 | let name; |
no test coverage detected
searching dependent graphs…