From 3fabe9b2654360a04d1cca66176f303b92f66840 Mon Sep 17 00:00:00 2001 From: Neil Kalman Date: Thu, 23 Feb 2017 22:13:01 +0200 Subject: [PATCH] fix tests to reflect new changes --- test/stubs/eventData.mock.js | 2 +- test/utilities.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/stubs/eventData.mock.js b/test/stubs/eventData.mock.js index d374aacb..8a18ac98 100644 --- a/test/stubs/eventData.mock.js +++ b/test/stubs/eventData.mock.js @@ -8,7 +8,7 @@ module.exports = { 'diff_url': 'https://github.com/Kibibit/achievibit/pull/68.diff', 'patch_url': 'https://github.com/Kibibit/achievibit/pull/68.patch', 'issue_url': 'https://api.github.com/repos/Kibibit/achievibit/issues/68', - 'number': 68, + 'number': 1, 'state': 'open', 'locked': false, 'title': 'new_title', diff --git a/test/utilities.js b/test/utilities.js index 5c82df5c..03ce5e4e 100644 --- a/test/utilities.js +++ b/test/utilities.js @@ -108,7 +108,7 @@ describe('achievibit Utilities', function() { 'history', 'repository' ); - expect(pullRequest).to.not.include.keys('organization', 'reviewers'); + expect(pullRequest).to.not.include.keys('organization', 'assignees'); }); it('should have organization associated if found', function() { @@ -133,7 +133,7 @@ describe('achievibit Utilities', function() { var pullRequest = utilities.initializePullRequest(eventData); expect(pullRequest).to.be.an('object'); - expect(pullRequest).to.include.keys('reviewers'); + expect(pullRequest).to.include.keys('assignees'); }); }); describe('parseUser - GitHub User to achievibit User', function() {