MCPcopy Index your code
hub / github.com/github-tools/github / createTestTeam

Function createTestTeam

test/team.spec.js:12–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10};
11
12function 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
32let team;
33let name;

Callers 1

team.spec.jsFile · 0.85

Calls 3

getOrganizationMethod · 0.80
createTeamMethod · 0.80
getTeamMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…