]> source.dussan.org Git - sonarqube.git/commitdiff
Fix issue with BBS repos fetch
authorWouter Admiraal <wouter.admiraal@sonarsource.com>
Fri, 25 Sep 2020 12:04:29 +0000 (14:04 +0200)
committersonartech <sonartech@sonarsource.com>
Mon, 28 Sep 2020 20:07:23 +0000 (20:07 +0000)
server/sonar-web/src/main/js/apps/create/project/__tests__/BitbucketProjectCreate-test.tsx

index b142ef13b16df4f44b7834b353615c6171c4a358..883b3672a0f7bf9b6467e7c5da6d7a491c7b9c33 100644 (file)
@@ -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' } }),