1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should render correctly: default 1`] = `
9 message="Reduce the number of conditional operators (4) used in the expression"
10 ruleKey="javascript:S1067"
13 className="issue-row-meta"
16 className="issue-meta-list"
19 className="issue-meta"
22 creationDate="2017-03-01T09:36:01+0100"
27 "component": "main.js",
28 "componentLongName": "main.js",
29 "componentQualifier": "FIL",
30 "componentUuid": "foo1234",
31 "creationDate": "2017-03-01T09:36:01+0100",
32 "externalRuleEngine": "foo",
34 "flowsWithType": Array [],
35 "key": "AVsae-CQS-9G3txfbFN2",
37 "message": "Reduce the number of conditional operators (4) used in the expression",
38 "project": "myproject",
41 "rule": "javascript:S1067",
43 "secondaryLocations": Array [],
52 "transitions": Array [],
56 togglePopup={[MockFunction]}
60 className="issue-meta"
63 className="issue-meta-label"
71 className="issue-meta"
74 className="js-issue-permalink link-no-underline"
80 "pathname": "/project/issues",
81 "search": "?issues=AVsae-CQS-9G3txfbFN2&open=AVsae-CQS-9G3txfbFN2&id=myproject",
93 exports[`should render correctly: with filter 1`] = `
99 message="Reduce the number of conditional operators (4) used in the expression"
100 ruleKey="javascript:S1067"
103 className="issue-row-meta"
106 className="issue-meta-list"
109 className="issue-meta"
112 creationDate="2017-03-01T09:36:01+0100"
117 "component": "main.js",
118 "componentLongName": "main.js",
119 "componentQualifier": "FIL",
120 "componentUuid": "foo1234",
121 "creationDate": "2017-03-01T09:36:01+0100",
122 "externalRuleEngine": "foo",
124 "flowsWithType": Array [],
125 "key": "AVsae-CQS-9G3txfbFN2",
127 "message": "Reduce the number of conditional operators (4) used in the expression",
128 "project": "myproject",
130 "projectName": "Foo",
131 "rule": "javascript:S1067",
133 "secondaryLocations": Array [],
136 "textRange": Object {
142 "transitions": Array [],
146 togglePopup={[MockFunction]}
150 className="issue-meta"
153 className="issue-meta-label"
161 className="issue-meta"
164 className="js-issue-permalink link-no-underline"
170 "pathname": "/project/issues",
171 "search": "?issues=AVsae-CQS-9G3txfbFN2&open=AVsae-CQS-9G3txfbFN2&id=myproject",
179 className="issue-meta"
186 "component": "main.js",
187 "componentLongName": "main.js",
188 "componentQualifier": "FIL",
189 "componentUuid": "foo1234",
190 "creationDate": "2017-03-01T09:36:01+0100",
191 "externalRuleEngine": "foo",
193 "flowsWithType": Array [],
194 "key": "AVsae-CQS-9G3txfbFN2",
196 "message": "Reduce the number of conditional operators (4) used in the expression",
197 "project": "myproject",
199 "projectName": "Foo",
200 "rule": "javascript:S1067",
202 "secondaryLocations": Array [],
205 "textRange": Object {
211 "transitions": Array [],
215 onFilter={[MockFunction]}
216 togglePopup={[MockFunction]}
224 exports[`should render correctly: with multi locations 1`] = `
226 className="issue-row"
229 message="Reduce the number of conditional operators (4) used in the expression"
230 ruleKey="javascript:S1067"
233 className="issue-row-meta"
236 className="issue-meta-list"
239 className="issue-meta"
242 creationDate="2017-03-01T09:36:01+0100"
247 "component": "main.js",
248 "componentLongName": "main.js",
249 "componentQualifier": "FIL",
250 "componentUuid": "foo1234",
251 "creationDate": "2017-03-01T09:36:01+0100",
255 "component": "main.js",
256 "textRange": Object {
264 "component": "main.js",
265 "textRange": Object {
273 "component": "main.js",
274 "textRange": Object {
284 "component": "main.js",
285 "textRange": Object {
293 "component": "main.js",
294 "textRange": Object {
303 "flowsWithType": Array [],
304 "key": "AVsae-CQS-9G3txfbFN2",
306 "message": "Reduce the number of conditional operators (4) used in the expression",
307 "project": "myproject",
309 "projectName": "Foo",
310 "rule": "javascript:S1067",
312 "secondaryLocations": Array [
314 "component": "main.js",
315 "textRange": Object {
323 "component": "main.js",
324 "textRange": Object {
334 "textRange": Object {
340 "transitions": Array [],
344 togglePopup={[MockFunction]}
348 className="issue-meta"
351 className="issue-meta-label"
359 className="issue-meta"
362 overlay="issue.this_issue_involves_x_code_locations.7"
370 className="issue-meta"
373 className="js-issue-permalink link-no-underline"
379 "pathname": "/project/issues",
380 "search": "?issues=AVsae-CQS-9G3txfbFN2&open=AVsae-CQS-9G3txfbFN2&id=myproject",
392 exports[`should render correctly: with multi locations and link 1`] = `
394 className="issue-row"
397 message="Reduce the number of conditional operators (4) used in the expression"
398 ruleKey="javascript:S1067"
401 className="issue-row-meta"
404 className="issue-meta-list"
407 className="issue-meta"
410 creationDate="2017-03-01T09:36:01+0100"
415 "component": "main.js",
416 "componentLongName": "main.js",
417 "componentQualifier": "FIL",
418 "componentUuid": "foo1234",
419 "creationDate": "2017-03-01T09:36:01+0100",
423 "component": "main.js",
424 "textRange": Object {
432 "component": "main.js",
433 "textRange": Object {
441 "component": "main.js",
442 "textRange": Object {
452 "component": "main.js",
453 "textRange": Object {
461 "component": "main.js",
462 "textRange": Object {
471 "flowsWithType": Array [],
472 "key": "AVsae-CQS-9G3txfbFN2",
474 "message": "Reduce the number of conditional operators (4) used in the expression",
475 "project": "myproject",
477 "projectName": "Foo",
478 "rule": "javascript:S1067",
480 "secondaryLocations": Array [
482 "component": "main.js",
483 "textRange": Object {
491 "component": "main.js",
492 "textRange": Object {
502 "textRange": Object {
508 "transitions": Array [],
512 togglePopup={[MockFunction]}
516 className="issue-meta"
519 className="issue-meta-label"
527 className="issue-meta"
534 "pathname": "/project/issues",
535 "search": "?branch=branch-6.7&issues=AVsae-CQS-9G3txfbFN2&open=AVsae-CQS-9G3txfbFN2&id=myproject",
540 overlay="issue.this_issue_involves_x_code_locations.7"
549 className="issue-meta"
552 className="js-issue-permalink link-no-underline"
558 "pathname": "/project/issues",
559 "search": "?branch=branch-6.7&issues=AVsae-CQS-9G3txfbFN2&open=AVsae-CQS-9G3txfbFN2&id=myproject",