Skip to content

Commit 766d09b

Browse files
author
Tobias Fuhrimann
committed
fix unit tests
1 parent 7990abe commit 766d09b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/test_webhooks.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ describe('webhooks', function () {
1010
, config = lib.pushJob(fx)
1111

1212
delete config.trigger.author.image
13+
1314
expect(config).to.eql({
1415
branch: 'master',
1516
deploy: true,
@@ -58,7 +59,8 @@ describe('webhooks', function () {
5859
}
5960
},
6061
ref: {
61-
fetch: 'refs/pull/1/merge'
62+
fetch: 'refs/pull/1/merge',
63+
branch: 'master'
6264
},
6365
trigger: {
6466
type: 'pull-request',
@@ -78,7 +80,7 @@ describe('webhooks', function () {
7880
})
7981
})
8082
})
81-
83+
8284
describe('verifySignature', function () {
8385
// `X-Hub-Signature` request header value from a github test hook request
8486
var goodSig = 'sha1=0a09a56a74e9e68928a35f712afaae72b010c11f'
@@ -96,5 +98,5 @@ describe('webhooks', function () {
9698
done()
9799
})
98100
})
99-
101+
100102
})

0 commit comments

Comments
 (0)