]> source.dussan.org Git - sonarqube.git/blob
4c7f8b850db66be1d2c545613b0f43c339e3af9f
[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&token=foo"
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&token=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         "metric": "alert_status",
58       }
59     }
60     type="measure"
61     updateOptions={[Function]}
62   />
63   <Alert
64     variant="warning"
65   >
66     overview.badges.leak_warning
67   </Alert>
68   <CodeSnippet
69     isOneLine={true}
70     snippet="[![alert_status](host/api/project_badges/measure?branch=branch-6.7&project=foo&metric=alert_status&token=foo)](/dashboard)"
71   />
72 </div>
73 `;