]> source.dussan.org Git - sonarqube.git/blob
051deeee673bd2fc5a7fcd81417329ab1116aa7c
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <div
5   className="concise-issue-box clearfix"
6   onClick={[Function]}
7 >
8   <ButtonPlain
9     aria-current={false}
10     className="concise-issue-box-message"
11     innerRef={[Function]}
12     onClick={[Function]}
13   >
14     <IssueMessageHighlighting
15       message="Reduce the number of conditional operators (4) used in the expression"
16     />
17   </ButtonPlain>
18   <div
19     className="concise-issue-box-attributes"
20   >
21     <TypeHelper
22       className="display-block little-spacer-right"
23       type="BUG"
24     />
25     <ConciseIssueLocations
26       issue={
27         {
28           "actions": [],
29           "component": "main.js",
30           "componentEnabled": true,
31           "componentLongName": "main.js",
32           "componentQualifier": "FIL",
33           "componentUuid": "foo1234",
34           "creationDate": "2017-03-01T09:36:01+0100",
35           "flows": [],
36           "flowsWithType": [],
37           "key": "AVsae-CQS-9G3txfbFN2",
38           "line": 25,
39           "message": "Reduce the number of conditional operators (4) used in the expression",
40           "project": "myproject",
41           "projectKey": "foo",
42           "projectName": "Foo",
43           "rule": "javascript:S1067",
44           "ruleName": "foo",
45           "secondaryLocations": [],
46           "severity": "MAJOR",
47           "status": "OPEN",
48           "textRange": {
49             "endLine": 26,
50             "endOffset": 15,
51             "startLine": 25,
52             "startOffset": 0,
53           },
54           "transitions": [],
55           "type": "BUG",
56         }
57       }
58       onFlowSelect={[MockFunction]}
59       selectedFlowIndex={0}
60     />
61   </div>
62 </div>
63 `;
64
65 exports[`should render correctly 2`] = `
66 <div
67   className="concise-issue-box clearfix selected"
68 >
69   <ButtonPlain
70     aria-current={true}
71     className="concise-issue-box-message"
72     innerRef={[Function]}
73     onClick={[Function]}
74   >
75     <IssueMessageHighlighting
76       message="Reduce the number of conditional operators (4) used in the expression"
77     />
78   </ButtonPlain>
79   <div
80     className="concise-issue-box-attributes"
81   >
82     <TypeHelper
83       className="display-block little-spacer-right"
84       type="BUG"
85     />
86     <ConciseIssueLocations
87       issue={
88         {
89           "actions": [],
90           "component": "main.js",
91           "componentEnabled": true,
92           "componentLongName": "main.js",
93           "componentQualifier": "FIL",
94           "componentUuid": "foo1234",
95           "creationDate": "2017-03-01T09:36:01+0100",
96           "flows": [
97             [
98               {
99                 "component": "main.js",
100                 "textRange": {
101                   "endLine": 2,
102                   "endOffset": 2,
103                   "startLine": 1,
104                   "startOffset": 1,
105                 },
106               },
107               {
108                 "component": "main.js",
109                 "textRange": {
110                   "endLine": 2,
111                   "endOffset": 2,
112                   "startLine": 1,
113                   "startOffset": 1,
114                 },
115               },
116               {
117                 "component": "main.js",
118                 "textRange": {
119                   "endLine": 2,
120                   "endOffset": 2,
121                   "startLine": 1,
122                   "startOffset": 1,
123                 },
124               },
125             ],
126             [
127               {
128                 "component": "main.js",
129                 "textRange": {
130                   "endLine": 2,
131                   "endOffset": 2,
132                   "startLine": 1,
133                   "startOffset": 1,
134                 },
135               },
136               {
137                 "component": "main.js",
138                 "textRange": {
139                   "endLine": 2,
140                   "endOffset": 2,
141                   "startLine": 1,
142                   "startOffset": 1,
143                 },
144               },
145             ],
146           ],
147           "flowsWithType": [],
148           "key": "AVsae-CQS-9G3txfbFN2",
149           "line": 25,
150           "message": "Reduce the number of conditional operators (4) used in the expression",
151           "project": "myproject",
152           "projectKey": "foo",
153           "projectName": "Foo",
154           "rule": "javascript:S1067",
155           "ruleName": "foo",
156           "secondaryLocations": [
157             {
158               "component": "main.js",
159               "textRange": {
160                 "endLine": 2,
161                 "endOffset": 2,
162                 "startLine": 1,
163                 "startOffset": 1,
164               },
165             },
166             {
167               "component": "main.js",
168               "textRange": {
169                 "endLine": 2,
170                 "endOffset": 2,
171                 "startLine": 1,
172                 "startOffset": 1,
173               },
174             },
175           ],
176           "severity": "MAJOR",
177           "status": "OPEN",
178           "textRange": {
179             "endLine": 26,
180             "endOffset": 15,
181             "startLine": 25,
182             "startOffset": 0,
183           },
184           "transitions": [],
185           "type": "BUG",
186         }
187       }
188       onFlowSelect={[MockFunction]}
189       selectedFlowIndex={0}
190     />
191   </div>
192   <LocationsList
193     componentKey="main.js"
194     locations={
195       [
196         {
197           "component": "main.js",
198           "textRange": {
199             "endLine": 2,
200             "endOffset": 2,
201             "startLine": 1,
202             "startOffset": 1,
203           },
204         },
205         {
206           "component": "main.js",
207           "textRange": {
208             "endLine": 2,
209             "endOffset": 2,
210             "startLine": 1,
211             "startOffset": 1,
212           },
213         },
214       ]
215     }
216     onLocationSelect={[MockFunction]}
217     selectedLocationIndex={0}
218   />
219 </div>
220 `;