aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers/mocks
diff options
context:
space:
mode:
authorJeremy Davis <jeremy.davis@sonarsource.com>2021-08-10 17:50:25 +0200
committersonartech <sonartech@sonarsource.com>2021-08-12 20:07:59 +0000
commit94ff5648e0af09146d3db4c9a2fdba1852911022 (patch)
tree3c93d4fd3143c8ed4f0c6e0d49baac8b2c71bc43 /server/sonar-web/src/main/js/helpers/mocks
parent5589d0e0da0168d6d4af8ac4611f2dfc63c1687f (diff)
downloadsonarqube-94ff5648e0af09146d3db4c9a2fdba1852911022.tar.gz
sonarqube-94ff5648e0af09146d3db4c9a2fdba1852911022.zip
SONAR-15258 Add App Report Settings
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/mocks')
-rw-r--r--server/sonar-web/src/main/js/helpers/mocks/settings.ts15
1 files changed, 14 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/helpers/mocks/settings.ts b/server/sonar-web/src/main/js/helpers/mocks/settings.ts
index 59fe8ecb25c..14065d55238 100644
--- a/server/sonar-web/src/main/js/helpers/mocks/settings.ts
+++ b/server/sonar-web/src/main/js/helpers/mocks/settings.ts
@@ -17,7 +17,20 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-import { Setting, SettingWithCategory } from '../../types/settings';
+import { Setting, SettingCategoryDefinition, SettingWithCategory } from '../../types/settings';
+
+export function mockDefinition(
+ overrides: Partial<SettingCategoryDefinition> = {}
+): SettingCategoryDefinition {
+ return {
+ key: 'foo',
+ category: 'foo category',
+ fields: [],
+ options: [],
+ subCategory: 'foo subCat',
+ ...overrides
+ };
+}
export function mockSetting(overrides: Partial<Setting> = {}): Setting {
return {