aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers
diff options
context:
space:
mode:
authorJeremy Davis <jeremy.davis@sonarsource.com>2020-12-03 11:56:59 +0100
committersonartech <sonartech@sonarsource.com>2020-12-04 20:06:50 +0000
commit17439910a22be35c8f4a9d601ab8a4b524df287a (patch)
tree8c582c96c295832b7ea66a598065f1513efdb9f4 /server/sonar-web/src/main/js/helpers
parent9676f33bfcdeb599e26de963a938e33e753261fe (diff)
downloadsonarqube-17439910a22be35c8f4a9d601ab8a4b524df287a.tar.gz
sonarqube-17439910a22be35c8f4a9d601ab8a4b524df287a.zip
SONAR-11556 Make bubblechart legend actionable
Diffstat (limited to 'server/sonar-web/src/main/js/helpers')
-rw-r--r--server/sonar-web/src/main/js/helpers/mocks/projects.ts33
1 files changed, 33 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/helpers/mocks/projects.ts b/server/sonar-web/src/main/js/helpers/mocks/projects.ts
new file mode 100644
index 00000000000..5c4c13f97a0
--- /dev/null
+++ b/server/sonar-web/src/main/js/helpers/mocks/projects.ts
@@ -0,0 +1,33 @@
+/*
+ * SonarQube
+ * Copyright (C) 2009-2020 SonarSource SA
+ * mailto:info AT sonarsource DOT com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+import { Project } from '../../apps/projects/types';
+import { ComponentQualifier } from '../../types/component';
+
+export function mockProject(overrides: Partial<Project> = {}): Project {
+ return {
+ key: 'foo',
+ name: 'Foo',
+ measures: {},
+ qualifier: ComponentQualifier.Project,
+ tags: [],
+ visibility: 'public',
+ ...overrides
+ };
+}