Skip to content

Commit

Permalink
working forward on test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mose committed Jul 27, 2016
1 parent 961ae41 commit 8f7985a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -3,6 +3,7 @@ Hubot-phabs Changelog

### 1.2.3 - wip
- improve search result feedbacks
- fix full test coverage for feeds and search

### 1.2.2 - 2016-07-27
- fix task creation
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "hubot-phabs",
"description": "A hubot plugin for communication with a Phabricator instance.",
"version": "1.2.2",
"version": "1.2.3",
"author": {
"name": "mose",
"email": "mose@gandi.net",
Expand Down
2 changes: 1 addition & 1 deletion scripts/phabs_commands.coffee
Expand Up @@ -202,5 +202,5 @@ module.exports = (robot) ->
for task in payload.result.data
msg.send "#{process.env.PHABRICATOR_URL}/T#{task.id} - #{task.fields['name']}"
if payload.result.cursor.after?
msg.send "... and there is more."
msg.send '... and there is more.'
msg.finish()
14 changes: 7 additions & 7 deletions test/phabs_feeds_test.coffee
Expand Up @@ -67,7 +67,7 @@ describe 'phabs_feeds module', ->
"epoch": "1469408232"
}'
room.robot.http('http://localhost:8080')
.path('/Hubot/phabs/feeds')
.path('/hubot/phabs/feeds')
.post(postData) (err, res, payload) ->
done()

Expand All @@ -84,7 +84,7 @@ describe 'phabs_feeds module', ->
'Bug Report': {
phid: 'PHID-PROJ-qhmexneudkt62wc7o3z4',
feeds: [
"room1"
'room1'
]
},
'project with phid': { phid: 'PHID-PROJ-1234567' },
Expand Down Expand Up @@ -139,7 +139,7 @@ describe 'phabs_feeds module', ->
}
}
],
'maps': {},
'maps': { },
'query': {
'queryKey': 'XQHShcroSRib'
},
Expand All @@ -166,7 +166,7 @@ describe 'phabs_feeds module', ->
"epoch": "1469085410"
}'
room.robot.http('http://localhost:8080')
.path('/Hubot/phabs/feeds')
.path('/hubot/phabs/feeds')
.post(postData) (err, res, payload) ->
done()

Expand All @@ -185,7 +185,7 @@ describe 'phabs_feeds module', ->
'Bug Report': {
phid: 'PHID-PROJ-qhmexneudkt62wc7o3z4',
feeds: [
"room1"
'room1'
]
},
'project with phid': { phid: 'PHID-PROJ-1234567' },
Expand Down Expand Up @@ -240,7 +240,7 @@ describe 'phabs_feeds module', ->
}
}
],
'maps': {},
'maps': { },
'query': {
'queryKey': 'XQHShcroSRib'
},
Expand All @@ -267,7 +267,7 @@ describe 'phabs_feeds module', ->
"epoch": "1469085410"
}'
room.robot.http('http://localhost:8080')
.path('/Hubot/phabs/feeds')
.path('/hubot/phabs/feeds')
.post(postData) (err, res, payload) ->
done()

Expand Down

0 comments on commit 8f7985a

Please sign in to comment.