test(post): account for undeclared breaking change in github package

This commit is contained in:
Stephan Bönnemann
2015-04-24 00:24:21 +02:00
parent e0eee05a7e
commit 248c41a504
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -58,7 +58,8 @@ module.exports = function (test, createModule) {
t.test('correct data published', function (t) {
t.plan(4)
github.releases.getRelease({ owner: 'user', repo: 'repo', id: 1}, function (err, res) {
github.releases.getRelease({ owner: 'user', repo: 'repo', id: 1}, function (err, raw) {
var res = JSON.parse(raw)
t.error(err, 'github')
t.is(res.tag_name, 'v2.0.0', 'version')
t.is(res.author.login, 'user', 'user')