]> source.dussan.org Git - sonarqube.git/blob
c48fa415a2edad4ac9fa1922c3bddebf34e55d5e
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should display correctly 1`] = `
4 <div
5   className="display-flex-column"
6 >
7   <h3>
8     overview.badges.get_badge.TRK
9   </h3>
10   <p
11     className="big-spacer-bottom"
12   >
13     overview.badges.description.TRK
14   </p>
15   <BadgeButton
16     onClick={[Function]}
17     selected={true}
18     type="measure"
19     url="host/api/project_badges/measure?branch=branch-6.7&project=foo&metric=alert_status"
20   />
21   <p
22     className="huge-spacer-bottom spacer-top"
23   >
24     overview.badges.measure.description.TRK
25   </p>
26   <BadgeButton
27     onClick={[Function]}
28     selected={false}
29     type="quality_gate"
30     url="host/api/project_badges/quality_gate?branch=branch-6.7&project=foo"
31   />
32   <p
33     className="huge-spacer-bottom spacer-top"
34   >
35     overview.badges.quality_gate.description.TRK
36   </p>
37   <BadgeParams
38     className="big-spacer-bottom display-flex-column"
39     metrics={
40       Object {
41         "coverage": Object {
42           "id": "coverage",
43           "key": "coverage",
44           "name": "Coverage",
45           "type": "PERCENT",
46         },
47         "new_code_smells": Object {
48           "id": "new_code_smells",
49           "key": "new_code_smells",
50           "name": "New_code_smells",
51           "type": "PERCENT",
52         },
53       }
54     }
55     options={
56       Object {
57         "color": "white",
58         "metric": "alert_status",
59       }
60     }
61     type="measure"
62     updateOptions={[Function]}
63   />
64   <CodeSnippet
65     isOneLine={true}
66     snippet="[![alert_status](host/api/project_badges/measure?branch=branch-6.7&project=foo&metric=alert_status)](/dashboard)"
67   />
68 </div>
69 `;