aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/mocks/SettingsServiceMock.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/api/mocks/SettingsServiceMock.ts')
-rw-r--r--server/sonar-web/src/main/js/api/mocks/SettingsServiceMock.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/api/mocks/SettingsServiceMock.ts b/server/sonar-web/src/main/js/api/mocks/SettingsServiceMock.ts
index 7d22006a564..89727adaa72 100644
--- a/server/sonar-web/src/main/js/api/mocks/SettingsServiceMock.ts
+++ b/server/sonar-web/src/main/js/api/mocks/SettingsServiceMock.ts
@@ -28,8 +28,8 @@ export default class SettingsServiceMock {
defaultValues: SettingValue[] = [
{
key: SettingsKey.AuditHouseKeeping,
- value: HousekeepingPolicy.Weekly
- }
+ value: HousekeepingPolicy.Weekly,
+ },
];
constructor() {
@@ -40,12 +40,12 @@ export default class SettingsServiceMock {
}
handleGetValue = (data: { key: string; component?: string } & BranchParameters) => {
- const setting = this.settingValues.find(s => s.key === data.key);
+ const setting = this.settingValues.find((s) => s.key === data.key);
return this.reply(setting);
};
handleGetValues = (data: { keys: string[]; component?: string } & BranchParameters) => {
- const settings = this.settingValues.filter(s => data.keys.includes(s.key));
+ const settings = this.settingValues.filter((s) => data.keys.includes(s.key));
return this.reply(settings);
};
@@ -59,7 +59,7 @@ export default class SettingsServiceMock {
};
set = (key: SettingsKey, value: string) => {
- const setting = this.settingValues.find(s => s.key === key);
+ const setting = this.settingValues.find((s) => s.key === key);
if (setting) {
setting.value = value;
} else {