Skip to content

Commit cd74a9d

Browse files
actually read PR this time closes #1
1 parent 7816062 commit cd74a9d

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

__tests__/create-branch.test.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,6 @@ describe('Create a branch based on the input', () => {
6464
expect(error).toEqual(new ReferenceError('No token defined in the environment variables'))
6565
}
6666
})
67-
68-
it('fails if branch already exists', async() => {
69-
try {
70-
await createBranch(githubMock, contextMock, branch)
71-
throw Error('should error')
72-
} catch (error) {
73-
expect(error).toEqual(new ReferenceError('Branch already exists'))
74-
}
75-
})
7667
});
7768

7869
class HttpError extends Error {

src/create-branch.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export async function createBranch(github: any, context: Context, branch: string
2323
throw Error(error)
2424
}
2525
}
26-
if (branchExists) throw ReferenceError('Branch already exists')
2726
}
2827

2928
function githubToken(): string {

0 commit comments

Comments
 (0)