]> source.dussan.org Git - sonarqube.git/blob
1ac517499da21efd179a035d94c0af74cbbb67a9
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: loaded 1`] = `
4 <div
5   className="coding-rule-details"
6 >
7   <DeferredSpinner
8     loading={false}
9   >
10     <RuleDetailsMeta
11       onFilterChange={[MockFunction]}
12       onTagsChange={[Function]}
13       referencedRepositories={
14         {
15           "javascript": {
16             "key": "javascript",
17             "language": "js",
18             "name": "SonarAnalyzer",
19           },
20         }
21       }
22       ruleDetails={
23         {
24           "createdAt": "2014-12-16T17:26:54+0100",
25           "debtOverloaded": false,
26           "debtRemFnOffset": "5min",
27           "debtRemFnType": "CONSTANT_ISSUE",
28           "defaultDebtRemFnOffset": "5min",
29           "defaultDebtRemFnType": "CONSTANT_ISSUE",
30           "defaultRemFnBaseEffort": "5min",
31           "defaultRemFnType": "CONSTANT_ISSUE",
32           "descriptionSections": [
33             {
34               "content": "<b>Why</b> Because",
35               "key": "default",
36             },
37           ],
38           "htmlDesc": "",
39           "isExternal": false,
40           "isTemplate": false,
41           "key": "squid:S1337",
42           "lang": "java",
43           "langName": "Java",
44           "mdDesc": "",
45           "name": "".equals()" should not be used to test the values of "Atomic" classes",
46           "params": [],
47           "remFnBaseEffort": "5min",
48           "remFnOverloaded": false,
49           "remFnType": "CONSTANT_ISSUE",
50           "repo": "squid",
51           "scope": "MAIN",
52           "severity": "MAJOR",
53           "status": "READY",
54           "sysTags": [
55             "multi-threading",
56           ],
57           "tags": [],
58           "type": "BUG",
59         }
60       }
61     />
62     <RuleDetailsDescription
63       onChange={[Function]}
64       ruleDetails={
65         {
66           "createdAt": "2014-12-16T17:26:54+0100",
67           "debtOverloaded": false,
68           "debtRemFnOffset": "5min",
69           "debtRemFnType": "CONSTANT_ISSUE",
70           "defaultDebtRemFnOffset": "5min",
71           "defaultDebtRemFnType": "CONSTANT_ISSUE",
72           "defaultRemFnBaseEffort": "5min",
73           "defaultRemFnType": "CONSTANT_ISSUE",
74           "descriptionSections": [
75             {
76               "content": "<b>Why</b> Because",
77               "key": "default",
78             },
79           ],
80           "htmlDesc": "",
81           "isExternal": false,
82           "isTemplate": false,
83           "key": "squid:S1337",
84           "lang": "java",
85           "langName": "Java",
86           "mdDesc": "",
87           "name": "".equals()" should not be used to test the values of "Atomic" classes",
88           "params": [],
89           "remFnBaseEffort": "5min",
90           "remFnOverloaded": false,
91           "remFnType": "CONSTANT_ISSUE",
92           "repo": "squid",
93           "scope": "MAIN",
94           "severity": "MAJOR",
95           "status": "READY",
96           "sysTags": [
97             "multi-threading",
98           ],
99           "tags": [],
100           "type": "BUG",
101         }
102       }
103     />
104     <RuleDetailsProfiles
105       activations={
106         [
107           {
108             "createdAt": "2017-06-16T16:13:38+0200",
109             "inherit": "NONE",
110             "params": [],
111             "qProfile": "foo",
112             "severity": "MAJOR",
113             "updatedAt": "2017-06-16T16:13:38+0200",
114           },
115         ]
116       }
117       onActivate={[Function]}
118       onDeactivate={[Function]}
119       referencedProfiles={
120         {
121           "key": {
122             "activeDeprecatedRuleCount": 2,
123             "activeRuleCount": 10,
124             "childrenCount": 0,
125             "depth": 1,
126             "isBuiltIn": false,
127             "isDefault": false,
128             "isInherited": false,
129             "key": "foo",
130             "language": "js",
131             "languageName": "JavaScript",
132             "name": "name",
133             "projectCount": 3,
134           },
135         }
136       }
137       ruleDetails={
138         {
139           "createdAt": "2014-12-16T17:26:54+0100",
140           "debtOverloaded": false,
141           "debtRemFnOffset": "5min",
142           "debtRemFnType": "CONSTANT_ISSUE",
143           "defaultDebtRemFnOffset": "5min",
144           "defaultDebtRemFnType": "CONSTANT_ISSUE",
145           "defaultRemFnBaseEffort": "5min",
146           "defaultRemFnType": "CONSTANT_ISSUE",
147           "descriptionSections": [
148             {
149               "content": "<b>Why</b> Because",
150               "key": "default",
151             },
152           ],
153           "htmlDesc": "",
154           "isExternal": false,
155           "isTemplate": false,
156           "key": "squid:S1337",
157           "lang": "java",
158           "langName": "Java",
159           "mdDesc": "",
160           "name": "".equals()" should not be used to test the values of "Atomic" classes",
161           "params": [],
162           "remFnBaseEffort": "5min",
163           "remFnOverloaded": false,
164           "remFnType": "CONSTANT_ISSUE",
165           "repo": "squid",
166           "scope": "MAIN",
167           "severity": "MAJOR",
168           "status": "READY",
169           "sysTags": [
170             "multi-threading",
171           ],
172           "tags": [],
173           "type": "BUG",
174         }
175       }
176     />
177     <withAvailableFeaturesContext(RuleDetailsIssues)
178       ruleDetails={
179         {
180           "createdAt": "2014-12-16T17:26:54+0100",
181           "debtOverloaded": false,
182           "debtRemFnOffset": "5min",
183           "debtRemFnType": "CONSTANT_ISSUE",
184           "defaultDebtRemFnOffset": "5min",
185           "defaultDebtRemFnType": "CONSTANT_ISSUE",
186           "defaultRemFnBaseEffort": "5min",
187           "defaultRemFnType": "CONSTANT_ISSUE",
188           "descriptionSections": [
189             {
190               "content": "<b>Why</b> Because",
191               "key": "default",
192             },
193           ],
194           "htmlDesc": "",
195           "isExternal": false,
196           "isTemplate": false,
197           "key": "squid:S1337",
198           "lang": "java",
199           "langName": "Java",
200           "mdDesc": "",
201           "name": "".equals()" should not be used to test the values of "Atomic" classes",
202           "params": [],
203           "remFnBaseEffort": "5min",
204           "remFnOverloaded": false,
205           "remFnType": "CONSTANT_ISSUE",
206           "repo": "squid",
207           "scope": "MAIN",
208           "severity": "MAJOR",
209           "status": "READY",
210           "sysTags": [
211             "multi-threading",
212           ],
213           "tags": [],
214           "type": "BUG",
215         }
216       }
217     />
218   </DeferredSpinner>
219 </div>
220 `;
221
222 exports[`should render correctly: loading 1`] = `
223 <div
224   className="coding-rule-details"
225 />
226 `;