1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should render CrossComponentSourceViewer correctly 1`] = `
7 "registerPrimaryLocationRef": [Function],
8 "registerSelectedSecondaryLocationRef": [Function],
12 <CrossComponentSourceViewer
15 "analysisDate": "2018-01-01",
16 "excludedFromPurge": true,
24 "component": "main.js",
25 "componentEnabled": true,
26 "componentLongName": "main.js",
27 "componentQualifier": "FIL",
28 "componentUuid": "foo1234",
29 "creationDate": "2017-03-01T09:36:01+0100",
33 "component": "main.js",
42 "component": "main.js",
53 "key": "AVsae-CQS-9G3txfbFN2",
55 "message": "Reduce the number of conditional operators (4) used in the expression",
56 "project": "myproject",
59 "rule": "javascript:S1067",
61 "secondaryLocations": [
63 "component": "main.js",
73 "component": "main.js",
99 "component": "main.js",
100 "componentEnabled": true,
101 "componentLongName": "main.js",
102 "componentQualifier": "FIL",
103 "componentUuid": "foo1234",
104 "creationDate": "2017-03-01T09:36:01+0100",
108 "component": "main.js",
117 "component": "main.js",
126 "component": "main.js",
137 "component": "main.js",
146 "component": "main.js",
157 "key": "AVsae-CQS-9G3txfbFN2",
159 "message": "Reduce the number of conditional operators (4) used in the expression",
160 "project": "myproject",
162 "projectName": "Foo",
163 "rule": "javascript:S1067",
165 "secondaryLocations": [
167 "component": "main.js",
176 "component": "main.js",
201 "component": "main.js",
211 "component": "main.js",
222 onIssueSelect={[MockFunction]}
223 onLocationSelect={[MockFunction]}
228 exports[`should render SourceViewer correctly: all secondary locations on same line 1`] = `
232 "registerPrimaryLocationRef": [Function],
233 "registerSelectedSecondaryLocationRef": [Function],
237 <CrossComponentSourceViewer
240 "analysisDate": "2018-01-01",
241 "excludedFromPurge": true,
249 "component": "main.js",
250 "componentEnabled": true,
251 "componentLongName": "main.js",
252 "componentQualifier": "FIL",
253 "componentUuid": "foo1234",
254 "creationDate": "2017-03-01T09:36:01+0100",
258 "component": "main.js",
267 "component": "main.js",
276 "component": "main.js",
287 "key": "AVsae-CQS-9G3txfbFN2",
289 "message": "Reduce the number of conditional operators (4) used in the expression",
290 "project": "myproject",
292 "projectName": "Foo",
293 "rule": "javascript:S1067",
295 "secondaryLocations": [
297 "component": "main.js",
307 "component": "main.js",
333 "component": "main.js",
334 "componentEnabled": true,
335 "componentLongName": "main.js",
336 "componentQualifier": "FIL",
337 "componentUuid": "foo1234",
338 "creationDate": "2017-03-01T09:36:01+0100",
342 "component": "main.js",
351 "component": "main.js",
360 "component": "main.js",
371 "component": "main.js",
380 "component": "main.js",
391 "key": "AVsae-CQS-9G3txfbFN2",
393 "message": "Reduce the number of conditional operators (4) used in the expression",
394 "project": "myproject",
396 "projectName": "Foo",
397 "rule": "javascript:S1067",
399 "secondaryLocations": [
401 "component": "main.js",
410 "component": "main.js",
435 "component": "main.js",
445 "component": "main.js",
456 onIssueSelect={[MockFunction]}
457 onLocationSelect={[MockFunction]}
462 exports[`should render SourceViewer correctly: default 1`] = `
466 "registerPrimaryLocationRef": [Function],
467 "registerSelectedSecondaryLocationRef": [Function],
471 <CrossComponentSourceViewer
474 "analysisDate": "2018-01-01",
475 "excludedFromPurge": true,
483 "component": "main.js",
484 "componentEnabled": true,
485 "componentLongName": "main.js",
486 "componentQualifier": "FIL",
487 "componentUuid": "foo1234",
488 "creationDate": "2017-03-01T09:36:01+0100",
491 "key": "AVsae-CQS-9G3txfbFN2",
493 "message": "Reduce the number of conditional operators (4) used in the expression",
494 "project": "myproject",
496 "projectName": "Foo",
497 "rule": "javascript:S1067",
499 "secondaryLocations": [],
516 "component": "main.js",
517 "componentEnabled": true,
518 "componentLongName": "main.js",
519 "componentQualifier": "FIL",
520 "componentUuid": "foo1234",
521 "creationDate": "2017-03-01T09:36:01+0100",
524 "key": "AVsae-CQS-9G3txfbFN2",
526 "message": "Reduce the number of conditional operators (4) used in the expression",
527 "project": "myproject",
529 "projectName": "Foo",
530 "rule": "javascript:S1067",
532 "secondaryLocations": [],
547 onIssueSelect={[MockFunction]}
548 onLocationSelect={[MockFunction]}
553 exports[`should render SourceViewer correctly: single secondary location 1`] = `
557 "registerPrimaryLocationRef": [Function],
558 "registerSelectedSecondaryLocationRef": [Function],
562 <CrossComponentSourceViewer
565 "analysisDate": "2018-01-01",
566 "excludedFromPurge": true,
574 "component": "main.js",
575 "componentEnabled": true,
576 "componentLongName": "main.js",
577 "componentQualifier": "FIL",
578 "componentUuid": "foo1234",
579 "creationDate": "2017-03-01T09:36:01+0100",
583 "component": "main.js",
594 "key": "AVsae-CQS-9G3txfbFN2",
596 "message": "Reduce the number of conditional operators (4) used in the expression",
597 "project": "myproject",
599 "projectName": "Foo",
600 "rule": "javascript:S1067",
602 "secondaryLocations": [
604 "component": "main.js",
614 "component": "main.js",
640 "component": "main.js",
641 "componentEnabled": true,
642 "componentLongName": "main.js",
643 "componentQualifier": "FIL",
644 "componentUuid": "foo1234",
645 "creationDate": "2017-03-01T09:36:01+0100",
649 "component": "main.js",
658 "component": "main.js",
667 "component": "main.js",
678 "component": "main.js",
687 "component": "main.js",
698 "key": "AVsae-CQS-9G3txfbFN2",
700 "message": "Reduce the number of conditional operators (4) used in the expression",
701 "project": "myproject",
703 "projectName": "Foo",
704 "rule": "javascript:S1067",
706 "secondaryLocations": [
708 "component": "main.js",
717 "component": "main.js",
742 "component": "main.js",
752 "component": "main.js",
763 onIssueSelect={[MockFunction]}
764 onLocationSelect={[MockFunction]}