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