Skip to content

Commit

Permalink
Update getClient call in a couple tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Jul 18, 2023
1 parent 580ddd6 commit 16166f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/brain/gocdSlackFeeds/deployFeed.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ describe('DeployFeed', () => {
});

it('post message with commits in deploy link for getsentry', async () => {
const octokit = await getClient(ClientType.App, 'Enterprise');
const octokit = await getClient(ClientType.App, GETSENTRY_ORG);
octokit.repos.getContent.mockImplementation((args) => {
if (args.owner != 'getsentry') {
throw new Error(`Unexpected getContent() owner: ${args.owner}`);
Expand Down Expand Up @@ -647,7 +647,7 @@ describe('DeployFeed', () => {
});

it('handle error if get content fails', async () => {
const octokit = await getClient(ClientType.App, 'Enterprise');
const octokit = await getClient(ClientType.App, GETSENTRY_ORG);
octokit.repos.getContent.mockImplementation((args) => {
throw new Error('Injected error');
});
Expand Down

0 comments on commit 16166f5

Please sign in to comment.