aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/mocks/SettingsServiceMock.ts
diff options
context:
space:
mode:
authorPhilippe Perrin <philippe.perrin@sonarsource.com>2022-11-02 11:08:39 +0100
committersonartech <sonartech@sonarsource.com>2022-11-02 20:03:01 +0000
commit2ab6fc273ecbf405f7c126fab11ddc0b9bf516da (patch)
treea6e005b4f57fb488d3e551b7df52399e69b0674c /server/sonar-web/src/main/js/api/mocks/SettingsServiceMock.ts
parent60e4b88e4567c1af3051b6cdc4c8858f8b0fca21 (diff)
downloadsonarqube-2ab6fc273ecbf405f7c126fab11ddc0b9bf516da.tar.gz
sonarqube-2ab6fc273ecbf405f7c126fab11ddc0b9bf516da.zip
SONAR-13368 Bump to prettier@2.7.1
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 {