Skip to content

Commit

Permalink
add ownerRepo test
Browse files Browse the repository at this point in the history
  • Loading branch information
jetersen committed Sep 29, 2022
1 parent 1cac4e4 commit cb0cea7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/core/tests/context.test.ts
Expand Up @@ -17,6 +17,15 @@ describe('Context', () => {
beforeAll(() => {
nock.disableNetConnect()
})
it('Context prints owner and repo', () => {
const context = new Context(octokit, {
owner: 'release-drafter-owner',
repo: 'release-drafter-repo',
})
expect(context.ownerRepo()).toBe(
'release-drafter-owner/release-drafter-repo',
)
})
it('Context with default branch and no config should default', async () => {
const context = new Context(octokit, {
owner: 'release-drafter',
Expand Down

0 comments on commit cb0cea7

Please sign in to comment.