Skip to content

Commit

Permalink
fix: pass the no PR right into getPullRequests()
Browse files Browse the repository at this point in the history
  • Loading branch information
adelkahomolova committed Jan 16, 2020
1 parent b0402b4 commit 1122795
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ describe('ThinPullRequestsPractice', () => {

it('return unknown if there is no PR', async () => {
mockCollaborationInspector.listPullRequests = async () => {
const pr = _.cloneDeep(getPullRequestsResponse());
pr.items = [];
return pr;
return getPullRequestsResponse([]);
};

const evaluated = await practice.evaluate({
Expand Down

0 comments on commit 1122795

Please sign in to comment.