]> source.dussan.org Git - sonarqube.git/blob
9e70241ec02c84e54bc58a22b78d4c050a48fbe9
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <ul
5   className="settings-sub-categories-list"
6 >
7   <li
8     key="email"
9   >
10     <h2
11       className="settings-sub-category-name"
12       data-key="email"
13     >
14       property.category.general.email
15     </h2>
16     <div
17       className="settings-sub-category-description markdown"
18       dangerouslySetInnerHTML={
19         {
20           "__html": "property.category.general.email.description",
21         }
22       }
23     />
24     <DefinitionsList
25       scrollToDefinition={[Function]}
26       settings={
27         [
28           {
29             "definition": {
30               "category": "general",
31               "description": "When Foo then Bar",
32               "fields": [],
33               "key": "foo",
34               "name": "Foo setting",
35               "options": [],
36               "subCategory": "email",
37               "type": "INTEGER",
38             },
39             "hasValue": true,
40             "inherited": true,
41             "key": "foo",
42             "value": "42",
43           },
44         ]
45       }
46     />
47     <withCurrentUserContext(EmailForm) />
48   </li>
49   <li
50     key="qg"
51   >
52     <h2
53       className="settings-sub-category-name"
54       data-key="qg"
55     >
56       property.category.general.qg
57     </h2>
58     <div
59       className="settings-sub-category-description markdown"
60       dangerouslySetInnerHTML={
61         {
62           "__html": "property.category.general.qg.description",
63         }
64       }
65     />
66     <DefinitionsList
67       scrollToDefinition={[Function]}
68       settings={
69         [
70           {
71             "definition": {
72               "category": "general",
73               "description": "awesome description",
74               "fields": [],
75               "key": "qg",
76               "options": [],
77               "subCategory": "qg",
78             },
79             "hasValue": true,
80             "inherited": true,
81             "key": "foo",
82             "value": "42",
83           },
84         ]
85       }
86     />
87   </li>
88 </ul>
89 `;
90
91 exports[`should render correctly: subcategory 1`] = `
92 <ul
93   className="settings-sub-categories-list"
94 >
95   <li
96     key="qg"
97   >
98     <h2
99       className="settings-sub-category-name"
100       data-key="qg"
101     >
102       property.category.general.qg
103     </h2>
104     <div
105       className="settings-sub-category-description markdown"
106       dangerouslySetInnerHTML={
107         {
108           "__html": "property.category.general.qg.description",
109         }
110       }
111     />
112     <DefinitionsList
113       scrollToDefinition={[Function]}
114       settings={
115         [
116           {
117             "definition": {
118               "category": "general",
119               "description": "awesome description",
120               "fields": [],
121               "key": "qg",
122               "options": [],
123               "subCategory": "qg",
124             },
125             "hasValue": true,
126             "inherited": true,
127             "key": "foo",
128             "value": "42",
129           },
130         ]
131       }
132     />
133   </li>
134 </ul>
135 `;