Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit e2f6b81

Browse files
committed
Test improvements
1 parent 3faacd4 commit e2f6b81

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/services/codebuild.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,16 @@ describe('AWS CodeBuild Provider', function() {
3535
})
3636

3737
it('throws if pr number cannot be detected', function() {
38+
process.env.CODEBUILD_WEBHOOK_HEAD_REF = 'refs/heads/master'
3839
delete process.env.CODEBUILD_SOURCE_VERSION
3940
expect(function() {
4041
codebuild.configuration()
4142
}).toThrow()
4243
})
4344

4445
it('throws if slug cannot be detected', function() {
46+
process.env.CODEBUILD_RESOLVED_SOURCE_VERSION =
47+
'39ec2418eca4c539d765574a1c68f3bd77e8c549'
4548
delete process.env.CODEBUILD_SOURCE_REPO_URL
4649
expect(function() {
4750
codebuild.configuration()

0 commit comments

Comments
 (0)