]> source.dussan.org Git - sonarqube.git/blob
812027acb3bfbf07cfa4a3334fb97f3aa27131da
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render the titlebar correctly 1`] = `
4 <div
5   className="issue-row"
6 >
7   <ContextConsumer>
8     <Component />
9   </ContextConsumer>
10   <div
11     className="issue-row-meta"
12   >
13     <ul
14       className="issue-meta-list"
15     >
16       <li
17         className="issue-meta"
18       >
19         <IssueChangelog
20           creationDate="2017-03-01T09:36:01+0100"
21           isOpen={false}
22           issue={
23             Object {
24               "actions": Array [],
25               "component": "main.js",
26               "componentLongName": "main.js",
27               "componentQualifier": "FIL",
28               "componentUuid": "foo1234",
29               "creationDate": "2017-03-01T09:36:01+0100",
30               "flows": Array [],
31               "fromHotspot": false,
32               "key": "AVsae-CQS-9G3txfbFN2",
33               "line": 25,
34               "message": "Reduce the number of conditional operators (4) used in the expression",
35               "organization": "myorg",
36               "project": "myproject",
37               "projectKey": "foo",
38               "projectName": "Foo",
39               "projectOrganization": "org",
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           togglePopup={[MockFunction]}
56         />
57       </li>
58       <li
59         className="issue-meta"
60       >
61         <span
62           className="issue-meta-label"
63           title="line_number"
64         >
65           L
66           26
67         </span>
68       </li>
69       <li
70         className="issue-meta"
71       >
72         <Link
73           className="js-issue-permalink link-no-underline"
74           onlyActiveOnIndex={false}
75           style={Object {}}
76           target="_blank"
77           title="permalink"
78           to={
79             Object {
80               "pathname": "/project/issues",
81               "query": Object {
82                 "branch": "feature-1.0",
83                 "id": "myproject",
84                 "issues": "AVsae-CQS-9G3txfbFN2",
85                 "open": "AVsae-CQS-9G3txfbFN2",
86                 "types": undefined,
87               },
88             }
89           }
90         >
91           <LinkIcon />
92         </Link>
93       </li>
94     </ul>
95   </div>
96 </div>
97 `;
98
99 exports[`should render the titlebar with the filter 1`] = `
100 <div
101   className="issue-row"
102 >
103   <ContextConsumer>
104     <Component />
105   </ContextConsumer>
106   <div
107     className="issue-row-meta"
108   >
109     <ul
110       className="issue-meta-list"
111     >
112       <li
113         className="issue-meta"
114       >
115         <IssueChangelog
116           creationDate="2017-03-01T09:36:01+0100"
117           isOpen={false}
118           issue={
119             Object {
120               "actions": Array [],
121               "component": "main.js",
122               "componentLongName": "main.js",
123               "componentQualifier": "FIL",
124               "componentUuid": "foo1234",
125               "creationDate": "2017-03-01T09:36:01+0100",
126               "flows": Array [],
127               "fromHotspot": false,
128               "key": "AVsae-CQS-9G3txfbFN2",
129               "line": 25,
130               "message": "Reduce the number of conditional operators (4) used in the expression",
131               "organization": "myorg",
132               "project": "myproject",
133               "projectKey": "foo",
134               "projectName": "Foo",
135               "projectOrganization": "org",
136               "rule": "javascript:S1067",
137               "ruleName": "foo",
138               "secondaryLocations": Array [],
139               "severity": "MAJOR",
140               "status": "OPEN",
141               "textRange": Object {
142                 "endLine": 26,
143                 "endOffset": 15,
144                 "startLine": 25,
145                 "startOffset": 0,
146               },
147               "transitions": Array [],
148               "type": "BUG",
149             }
150           }
151           togglePopup={[MockFunction]}
152         />
153       </li>
154       <li
155         className="issue-meta"
156       >
157         <span
158           className="issue-meta-label"
159           title="line_number"
160         >
161           L
162           26
163         </span>
164       </li>
165       <li
166         className="issue-meta"
167       >
168         <Link
169           className="js-issue-permalink link-no-underline"
170           onlyActiveOnIndex={false}
171           style={Object {}}
172           target="_blank"
173           title="permalink"
174           to={
175             Object {
176               "pathname": "/project/issues",
177               "query": Object {
178                 "id": "myproject",
179                 "issues": "AVsae-CQS-9G3txfbFN2",
180                 "open": "AVsae-CQS-9G3txfbFN2",
181                 "types": undefined,
182               },
183             }
184           }
185         >
186           <LinkIcon />
187         </Link>
188       </li>
189       <li
190         className="issue-meta"
191       >
192         <SimilarIssuesFilter
193           isOpen={false}
194           issue={
195             Object {
196               "actions": Array [],
197               "component": "main.js",
198               "componentLongName": "main.js",
199               "componentQualifier": "FIL",
200               "componentUuid": "foo1234",
201               "creationDate": "2017-03-01T09:36:01+0100",
202               "flows": Array [],
203               "fromHotspot": false,
204               "key": "AVsae-CQS-9G3txfbFN2",
205               "line": 25,
206               "message": "Reduce the number of conditional operators (4) used in the expression",
207               "organization": "myorg",
208               "project": "myproject",
209               "projectKey": "foo",
210               "projectName": "Foo",
211               "projectOrganization": "org",
212               "rule": "javascript:S1067",
213               "ruleName": "foo",
214               "secondaryLocations": Array [],
215               "severity": "MAJOR",
216               "status": "OPEN",
217               "textRange": Object {
218                 "endLine": 26,
219                 "endOffset": 15,
220                 "startLine": 25,
221                 "startOffset": 0,
222               },
223               "transitions": Array [],
224               "type": "BUG",
225             }
226           }
227           onFilter={[MockFunction]}
228           togglePopup={[MockFunction]}
229         />
230       </li>
231     </ul>
232   </div>
233 </div>
234 `;