Skip to content

Commit

Permalink
simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed May 23, 2023
1 parent 589f69f commit d02975f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/modules/platform/github/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3350,9 +3350,7 @@ describe('modules/platform/github/index', () => {
.head('/repos/some/repo/git/refs/heads/foo/bar')
.reply(200)
.patch('/repos/some/repo/git/refs/heads/foo/bar')
.reply(422, {
response: { body: { message: 'Reference does not exist' } },
})
.reply(422)
.post('/repos/some/repo/git/refs')
.reply(200);

Expand Down Expand Up @@ -3382,9 +3380,7 @@ describe('modules/platform/github/index', () => {
.head('/repos/some/repo/git/refs/heads/foo/bar')
.reply(200)
.patch('/repos/some/repo/git/refs/heads/foo/bar')
.reply(404, {
response: { body: { message: 'Reference does not exist' } },
});
.reply(404);

const res = await github.commitFiles({
branchName: 'foo/bar',
Expand Down

0 comments on commit d02975f

Please sign in to comment.