From b0942af5bfbabd17aaab303b680e22c0d9f29bb0 Mon Sep 17 00:00:00 2001 From: Adela Homolova <53510747+adelkahomolova@users.noreply.github.com> Date: Thu, 9 Jan 2020 20:55:48 +0100 Subject: [PATCH] fix: value of perPage Co-Authored-By: Prokop Simek --- .../git/__MOCKS__/bitbucketServiceMockFolder/getRepoCommits.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/git/__MOCKS__/bitbucketServiceMockFolder/getRepoCommits.ts b/src/services/git/__MOCKS__/bitbucketServiceMockFolder/getRepoCommits.ts index c84ceba5c..89629f533 100644 --- a/src/services/git/__MOCKS__/bitbucketServiceMockFolder/getRepoCommits.ts +++ b/src/services/git/__MOCKS__/bitbucketServiceMockFolder/getRepoCommits.ts @@ -31,6 +31,6 @@ export const getRepoCommits = (items?: Commit[]): Paginated => { hasNextPage: true, hasPreviousPage: true, page: 1, - perPage: 1, + perPage: items?.length || 1, }; };