Skip to content

Commit

Permalink
fix: use customized diffStat
Browse files Browse the repository at this point in the history
  • Loading branch information
adelkahomolova committed Dec 17, 2019
1 parent eeda833 commit 405dfae
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/services/git/GitHubService.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,25 @@ describe('GitHub Service', () => {
body: 'Please pull these awesome changes',
head: 'new-topic',
base: 'master',
lines: {
additions: 1,
deletions: 0,
},
};

new GitHubNock('1', 'octocat', 1296269, 'Hello-World').getPulls({ pulls: [params] });
new GitHubNock('1', 'octocat', 1296269, 'Hello-World').getPull(1, params.state, params.title, params.body, params.head, params.base);
new GitHubNock('1', 'octocat', 1296269, 'Hello-World').getPull(
1,
params.state,
params.title,
params.body,
params.head,
params.base,
undefined,
undefined,
undefined,
params.lines,
);

const response = await service.getPullRequests('octocat', 'Hello-World', { withDiffStat: true });

Expand Down

0 comments on commit 405dfae

Please sign in to comment.