-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement multi-org config #524
Changes from 6 commits
0da91ed
d86f107
be1caa7
78f1fbf
2a616cd
834c2b4
580ddd6
16166f5
18176b4
61d3556
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -516,7 +516,7 @@ describe('DeployFeed', () => { | |
}); | ||
|
||
it('post message with commits in deploy link for getsentry', async () => { | ||
const octokit = await getClient(ClientType.App, GETSENTRY_ORG); | ||
const octokit = await getClient(ClientType.App, 'Enterprise'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Worth parameterizing the somehow for the extra coverage? Not sure if we're mocking the replies, in which case it doesn't matter, but maybe worth considering. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We are mocking the replies. 🐭 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oooh ... this one wants to be We end up testing both |
||
octokit.repos.getContent.mockImplementation((args) => { | ||
if (args.owner != 'getsentry') { | ||
throw new Error(`Unexpected getContent() owner: ${args.owner}`); | ||
|
@@ -647,7 +647,7 @@ describe('DeployFeed', () => { | |
}); | ||
|
||
it('handle error if get content fails', async () => { | ||
const octokit = await getClient(ClientType.App, GETSENTRY_ORG); | ||
const octokit = await getClient(ClientType.App, 'Enterprise'); | ||
octokit.repos.getContent.mockImplementation((args) => { | ||
throw new Error('Injected error'); | ||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need docs in here since we tell people above to look for docs in the README. Let's only maintain docs in one place.