Skip to content

Commit

Permalink
touches
Browse files Browse the repository at this point in the history
  • Loading branch information
bwieger-atlassian-com committed Feb 13, 2025
1 parent 5b9a5f5 commit 52a411c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/bitbucket/bitbucket-server/pullRequests.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,16 @@ describe('ServerPullRequestApi', () => {
});

it('should get with a v8 if no 404s', async () => {
mockGet.mockImplementation((url) => {
mockGet.mockImplementation((url, queryParams?) => {
if (
url.includes('/rest/api/1.0/projects/owner/repos/repo/pull-requests/PR-1/blocker-comments?count=true')
) {
return Promise.resolve(getTaskCountDataV8);
}
if (url.includes('/rest/api/1.0/projects/owner/repos/repo/pull-requests/PR-1')) {
if (
url.includes('/rest/api/1.0/projects/owner/repos/repo/pull-requests/PR-1') &&
queryParams?.['markup'] === true
) {
return Promise.resolve({ data: getPullRequestData });
}

Expand Down

0 comments on commit 52a411c

Please sign in to comment.