aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/mocks/AlmSettingsServiceMock.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/api/mocks/AlmSettingsServiceMock.ts')
-rw-r--r--server/sonar-web/src/main/js/api/mocks/AlmSettingsServiceMock.ts22
1 files changed, 21 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/api/mocks/AlmSettingsServiceMock.ts b/server/sonar-web/src/main/js/api/mocks/AlmSettingsServiceMock.ts
index c5e32cb41f0..ea2f1f01f8b 100644
--- a/server/sonar-web/src/main/js/api/mocks/AlmSettingsServiceMock.ts
+++ b/server/sonar-web/src/main/js/api/mocks/AlmSettingsServiceMock.ts
@@ -31,11 +31,31 @@ export default class AlmSettingsServiceMock {
mockAlmSettingsInstance({ key: 'conf-github-2', alm: AlmKeys.GitHub, url: 'url' }),
mockAlmSettingsInstance({ key: 'conf-azure-1', alm: AlmKeys.Azure, url: 'url' }),
mockAlmSettingsInstance({ key: 'conf-azure-2', alm: AlmKeys.Azure, url: 'url' }),
+ mockAlmSettingsInstance({
+ key: 'conf-bitbucketcloud-1',
+ alm: AlmKeys.BitbucketCloud,
+ url: 'url',
+ }),
+ mockAlmSettingsInstance({
+ key: 'conf-bitbucketcloud-2',
+ alm: AlmKeys.BitbucketCloud,
+ url: 'url',
+ }),
+ mockAlmSettingsInstance({
+ key: 'conf-bitbucketserver-1',
+ alm: AlmKeys.BitbucketServer,
+ url: 'url',
+ }),
+ mockAlmSettingsInstance({
+ key: 'conf-bitbucketserver-2',
+ alm: AlmKeys.BitbucketServer,
+ url: 'url',
+ }),
];
constructor() {
this.almSettings = cloneDeep(this.defaultSetting);
- (getAlmSettings as jest.Mock).mockImplementation(this.getAlmSettingsHandler);
+ jest.mocked(getAlmSettings).mockImplementation(this.getAlmSettingsHandler);
}
getAlmSettingsHandler = () => {