From 248c41a50440b22c1bb12cb0a64da1ff5b88ca45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6nnemann?= Date: Fri, 24 Apr 2015 00:24:21 +0200 Subject: [PATCH] test(post): account for undeclared breaking change in github package --- package.json | 2 +- tests/scenarios/postpublish.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d878c8bd..8ed10e11 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "conventional-changelog": "0.0.17", "error-first-handler": "^1.0.1", "git-head": "^1.2.1", - "github": "^0.2.3", + "github": "0.2.4", "github-url-from-git": "^1.4.0", "ini": "^1.3.2", "minimist": "^1.1.0", diff --git a/tests/scenarios/postpublish.js b/tests/scenarios/postpublish.js index ca0014b5..06ea6e98 100644 --- a/tests/scenarios/postpublish.js +++ b/tests/scenarios/postpublish.js @@ -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')