Skip to content

Commit

Permalink
fix: update parameters passed to create teams client (#141)
Browse files Browse the repository at this point in the history
* feat: fix team client instantiation

* test: update team client usage in org test
  • Loading branch information
ebk45 authored Jul 28, 2023
1 parent a869bd4 commit 1012186
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static OrganisationClient create(final GitHubClient github, final String org) {
*
* @return Teams API client
*/
public TeamClient createTeamClient(final GitHubClient github, final String org) {
public TeamClient createTeamClient() {
return TeamClient.create(github, org);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void setUp() {

@Test
public void testTeamClient() throws Exception {
final TeamClient teamClient = organisationClient.createTeamClient(github, "github");
final TeamClient teamClient = organisationClient.createTeamClient();
final CompletableFuture<Team> fixture =
completedFuture(json.fromJson(getFixture("team_get.json"), Team.class));
when(github.request("/orgs/github/teams/justice-league", Team.class)).thenReturn(fixture);
Expand Down

0 comments on commit 1012186

Please sign in to comment.