1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should render correctly: default 1`] = `
11 className="issue-row-meta"
14 className="issue-meta-list"
17 className="issue-meta"
20 creationDate="2017-03-01T09:36:01+0100"
25 "component": "main.js",
26 "componentLongName": "main.js",
27 "componentQualifier": "FIL",
28 "componentUuid": "foo1234",
29 "creationDate": "2017-03-01T09:36:01+0100",
30 "externalRuleEngine": "foo",
33 "key": "AVsae-CQS-9G3txfbFN2",
35 "message": "Reduce the number of conditional operators (4) used in the expression",
36 "project": "myproject",
39 "rule": "javascript:S1067",
41 "secondaryLocations": Array [],
50 "transitions": Array [],
54 togglePopup={[MockFunction]}
58 className="issue-meta"
61 className="issue-meta-label"
69 className="issue-meta"
72 className="js-issue-permalink link-no-underline"
73 onlyActiveOnIndex={false}
79 "pathname": "/project/issues",
82 "issues": "AVsae-CQS-9G3txfbFN2",
83 "open": "AVsae-CQS-9G3txfbFN2",
97 exports[`should render correctly: issue message 1`] = `
100 manualVulnerability={false}
101 message="Reduce the number of conditional operators (4) used in the expression"
102 onOpenRule={[Function]}
103 ruleKey="javascript:S1067"
107 exports[`should render correctly: with filter 1`] = `
109 className="issue-row"
115 className="issue-row-meta"
118 className="issue-meta-list"
121 className="issue-meta"
124 creationDate="2017-03-01T09:36:01+0100"
129 "component": "main.js",
130 "componentLongName": "main.js",
131 "componentQualifier": "FIL",
132 "componentUuid": "foo1234",
133 "creationDate": "2017-03-01T09:36:01+0100",
134 "externalRuleEngine": "foo",
136 "fromHotspot": false,
137 "key": "AVsae-CQS-9G3txfbFN2",
139 "message": "Reduce the number of conditional operators (4) used in the expression",
140 "project": "myproject",
142 "projectName": "Foo",
143 "rule": "javascript:S1067",
145 "secondaryLocations": Array [],
148 "textRange": Object {
154 "transitions": Array [],
158 togglePopup={[MockFunction]}
162 className="issue-meta"
165 className="issue-meta-label"
173 className="issue-meta"
176 className="js-issue-permalink link-no-underline"
177 onlyActiveOnIndex={false}
183 "pathname": "/project/issues",
186 "issues": "AVsae-CQS-9G3txfbFN2",
187 "open": "AVsae-CQS-9G3txfbFN2",
197 className="issue-meta"
204 "component": "main.js",
205 "componentLongName": "main.js",
206 "componentQualifier": "FIL",
207 "componentUuid": "foo1234",
208 "creationDate": "2017-03-01T09:36:01+0100",
209 "externalRuleEngine": "foo",
211 "fromHotspot": false,
212 "key": "AVsae-CQS-9G3txfbFN2",
214 "message": "Reduce the number of conditional operators (4) used in the expression",
215 "project": "myproject",
217 "projectName": "Foo",
218 "rule": "javascript:S1067",
220 "secondaryLocations": Array [],
223 "textRange": Object {
229 "transitions": Array [],
233 onFilter={[MockFunction]}
234 togglePopup={[MockFunction]}
242 exports[`should render correctly: with multi locations 1`] = `
244 className="issue-row"
250 className="issue-row-meta"
253 className="issue-meta-list"
256 className="issue-meta"
259 creationDate="2017-03-01T09:36:01+0100"
264 "component": "main.js",
265 "componentLongName": "main.js",
266 "componentQualifier": "FIL",
267 "componentUuid": "foo1234",
268 "creationDate": "2017-03-01T09:36:01+0100",
272 "component": "main.js",
273 "textRange": Object {
281 "component": "main.js",
282 "textRange": Object {
290 "component": "main.js",
291 "textRange": Object {
301 "component": "main.js",
302 "textRange": Object {
310 "component": "main.js",
311 "textRange": Object {
320 "fromHotspot": false,
321 "key": "AVsae-CQS-9G3txfbFN2",
323 "message": "Reduce the number of conditional operators (4) used in the expression",
324 "project": "myproject",
326 "projectName": "Foo",
327 "rule": "javascript:S1067",
329 "secondaryLocations": Array [
331 "component": "main.js",
332 "textRange": Object {
340 "component": "main.js",
341 "textRange": Object {
351 "textRange": Object {
357 "transitions": Array [],
361 togglePopup={[MockFunction]}
365 className="issue-meta"
368 className="issue-meta-label"
376 className="issue-meta"
379 overlay="issue.this_issue_involves_x_code_locations.7"
387 className="issue-meta"
390 className="js-issue-permalink link-no-underline"
391 onlyActiveOnIndex={false}
397 "pathname": "/project/issues",
400 "issues": "AVsae-CQS-9G3txfbFN2",
401 "open": "AVsae-CQS-9G3txfbFN2",
415 exports[`should render correctly: with multi locations and link 1`] = `
417 className="issue-row"
423 className="issue-row-meta"
426 className="issue-meta-list"
429 className="issue-meta"
432 creationDate="2017-03-01T09:36:01+0100"
437 "component": "main.js",
438 "componentLongName": "main.js",
439 "componentQualifier": "FIL",
440 "componentUuid": "foo1234",
441 "creationDate": "2017-03-01T09:36:01+0100",
445 "component": "main.js",
446 "textRange": Object {
454 "component": "main.js",
455 "textRange": Object {
463 "component": "main.js",
464 "textRange": Object {
474 "component": "main.js",
475 "textRange": Object {
483 "component": "main.js",
484 "textRange": Object {
493 "fromHotspot": false,
494 "key": "AVsae-CQS-9G3txfbFN2",
496 "message": "Reduce the number of conditional operators (4) used in the expression",
497 "project": "myproject",
499 "projectName": "Foo",
500 "rule": "javascript:S1067",
502 "secondaryLocations": Array [
504 "component": "main.js",
505 "textRange": Object {
513 "component": "main.js",
514 "textRange": Object {
524 "textRange": Object {
530 "transitions": Array [],
534 togglePopup={[MockFunction]}
538 className="issue-meta"
541 className="issue-meta-label"
549 className="issue-meta"
552 onlyActiveOnIndex={false}
557 "pathname": "/project/issues",
559 "branch": "branch-6.7",
561 "issues": "AVsae-CQS-9G3txfbFN2",
562 "open": "AVsae-CQS-9G3txfbFN2",
569 overlay="issue.this_issue_involves_x_code_locations.7"
578 className="issue-meta"
581 className="js-issue-permalink link-no-underline"
582 onlyActiveOnIndex={false}
588 "pathname": "/project/issues",
590 "branch": "branch-6.7",
592 "issues": "AVsae-CQS-9G3txfbFN2",
593 "open": "AVsae-CQS-9G3txfbFN2",