]> source.dussan.org Git - sonarqube.git/blob
639a2bb4f5d0fb14620149e419fc41ac30b9db9f
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: default 1`] = `
4 <Tooltip
5   overlay="Lorem ipsum dolor sit amet"
6 >
7   <span
8     className="text-middle"
9   >
10     <span
11       className="note little-spacer-right"
12     >
13       event.category.VERSION
14       :
15     </span>
16     <strong
17       className="spacer-right"
18     >
19       Lorem ipsum
20     </strong>
21   </span>
22 </Tooltip>
23 `;
24
25 exports[`should render correctly: definition change 1`] = `
26 <DefinitionChangeEventInner
27   branchLike={
28     Object {
29       "analysisDate": "2018-01-01",
30       "excludedFromPurge": true,
31       "isMain": false,
32       "name": "branch-6.7",
33     }
34   }
35   event={
36     Object {
37       "category": "DEFINITION_CHANGE",
38       "definitionChange": Object {
39         "projects": Array [
40           Object {
41             "changeType": "ADDED",
42             "key": "foo",
43             "name": "Foo",
44           },
45         ],
46       },
47       "description": "Lorem ipsum dolor sit amet",
48       "key": "E11",
49       "name": "Lorem ipsum",
50       "qualityGate": undefined,
51     }
52   }
53 />
54 `;
55
56 exports[`should render correctly: no description 1`] = `
57 <Tooltip
58   overlay={null}
59 >
60   <span
61     className="text-middle"
62   >
63     <span
64       className="note little-spacer-right"
65     >
66       event.category.VERSION
67       :
68     </span>
69     <strong
70       className="spacer-right"
71     >
72       Lorem ipsum
73     </strong>
74   </span>
75 </Tooltip>
76 `;
77
78 exports[`should render correctly: rich quality gate 1`] = `
79 <RichQualityGateEventInner
80   event={
81     Object {
82       "category": "QUALITY_GATE",
83       "description": "Lorem ipsum dolor sit amet",
84       "key": "E11",
85       "name": "Lorem ipsum",
86       "qualityGate": Object {
87         "failing": Array [
88           Object {
89             "branch": "master",
90             "key": "foo",
91             "name": "Foo",
92           },
93           Object {
94             "branch": "feature/bar",
95             "key": "bar",
96             "name": "Bar",
97           },
98         ],
99         "status": "ERROR",
100         "stillFailing": true,
101       },
102     }
103   }
104 />
105 `;