From c87841b757f4a849ddae0195d3f0bb98e2d5223f Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Fri, 25 Sep 2020 14:04:29 +0200 Subject: [PATCH] Fix issue with BBS repos fetch --- .../create/project/__tests__/BitbucketProjectCreate-test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/create/project/__tests__/BitbucketProjectCreate-test.tsx b/server/sonar-web/src/main/js/apps/create/project/__tests__/BitbucketProjectCreate-test.tsx index b142ef13b16..883b3672a0f 100644 --- a/server/sonar-web/src/main/js/apps/create/project/__tests__/BitbucketProjectCreate-test.tsx +++ b/server/sonar-web/src/main/js/apps/create/project/__tests__/BitbucketProjectCreate-test.tsx @@ -49,8 +49,8 @@ jest.mock('../../../../api/alm-integrations', () => { }), getBitbucketServerRepositories: jest.fn().mockResolvedValue({ repositories: [ - mockBitbucketRepository(), - mockBitbucketRepository({ id: 2, slug: 'project__repo2' }) + mockBitbucketRepository({ projectKey: 'project1' }), + mockBitbucketRepository({ id: 2, projectKey: 'project1', slug: 'project__repo2' }) ] }), importBitbucketServerProject: jest.fn().mockResolvedValue({ project: { key: 'baz' } }), -- 2.39.5