Skip to content

Commit d215f60

Browse files
author
Ilya Radchenko
committed
Fix tests
1 parent ad7c65f commit d215f60

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
22
*~
3+
.DS_Store

test/test_webhooks.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ describe('webhooks', function () {
4040
describe('pull request hook', function () {
4141
describe('parsing', function () {
4242
it('should work', function () {
43-
var fx = require('./sample_pull_request.json')
44-
, config = lib.pullRequestJob(fx.pull_request, fx.action)
43+
var fx = require('./sample_pull_request.json');
44+
var config = lib.pullRequestJob(fx.pull_request, fx.action);
45+
4546
expect(config).to.eql({
4647
branch: 'master',
4748
deploy: false,
@@ -51,7 +52,8 @@ describe('webhooks', function () {
5152
user: 'jaredly',
5253
repo: 'petulant-wookie',
5354
sha: 'f65ac3101a45bb9408c0459805b496cb73ae2d5f',
54-
number: 1
55+
number: 1,
56+
body: 'This is the body.'
5557
}
5658
}
5759
},

0 commit comments

Comments
 (0)