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