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 "componentLongName": "main.js",
26 "componentQualifier": "FIL",
27 "componentUuid": "foo1234",
28 "creationDate": "2017-03-01T09:36:01+0100",
32 "component": "main.js",
41 "component": "main.js",
51 "flowsWithType": Array [],
52 "key": "AVsae-CQS-9G3txfbFN2",
54 "message": "Reduce the number of conditional operators (4) used in the expression",
55 "project": "myproject",
58 "rule": "javascript:S1067",
60 "secondaryLocations": Array [
62 "component": "main.js",
72 "component": "main.js",
90 "transitions": Array [],
98 "component": "main.js",
99 "componentLongName": "main.js",
100 "componentQualifier": "FIL",
101 "componentUuid": "foo1234",
102 "creationDate": "2017-03-01T09:36:01+0100",
106 "component": "main.js",
107 "textRange": Object {
115 "component": "main.js",
116 "textRange": Object {
124 "component": "main.js",
125 "textRange": Object {
135 "component": "main.js",
136 "textRange": Object {
144 "component": "main.js",
145 "textRange": Object {
154 "flowsWithType": Array [],
155 "key": "AVsae-CQS-9G3txfbFN2",
157 "message": "Reduce the number of conditional operators (4) used in the expression",
158 "project": "myproject",
160 "projectName": "Foo",
161 "rule": "javascript:S1067",
163 "secondaryLocations": Array [
165 "component": "main.js",
166 "textRange": Object {
174 "component": "main.js",
175 "textRange": Object {
185 "textRange": Object {
191 "transitions": Array [],
199 "component": "main.js",
201 "textRange": Object {
209 "component": "main.js",
211 "textRange": Object {
220 onIssueSelect={[MockFunction]}
221 onLocationSelect={[MockFunction]}
226 exports[`should render SourceViewer correctly: all secondary locations on same line 1`] = `
230 "registerPrimaryLocationRef": [Function],
231 "registerSelectedSecondaryLocationRef": [Function],
235 <CrossComponentSourceViewer
238 "analysisDate": "2018-01-01",
239 "excludedFromPurge": true,
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 {
283 "flowsWithType": Array [],
284 "key": "AVsae-CQS-9G3txfbFN2",
286 "message": "Reduce the number of conditional operators (4) used in the expression",
287 "project": "myproject",
289 "projectName": "Foo",
290 "rule": "javascript:S1067",
292 "secondaryLocations": Array [
294 "component": "main.js",
296 "textRange": Object {
304 "component": "main.js",
306 "textRange": Object {
316 "textRange": Object {
322 "transitions": Array [],
330 "component": "main.js",
331 "componentLongName": "main.js",
332 "componentQualifier": "FIL",
333 "componentUuid": "foo1234",
334 "creationDate": "2017-03-01T09:36:01+0100",
338 "component": "main.js",
339 "textRange": Object {
347 "component": "main.js",
348 "textRange": Object {
356 "component": "main.js",
357 "textRange": Object {
367 "component": "main.js",
368 "textRange": Object {
376 "component": "main.js",
377 "textRange": Object {
386 "flowsWithType": Array [],
387 "key": "AVsae-CQS-9G3txfbFN2",
389 "message": "Reduce the number of conditional operators (4) used in the expression",
390 "project": "myproject",
392 "projectName": "Foo",
393 "rule": "javascript:S1067",
395 "secondaryLocations": Array [
397 "component": "main.js",
398 "textRange": Object {
406 "component": "main.js",
407 "textRange": Object {
417 "textRange": Object {
423 "transitions": Array [],
431 "component": "main.js",
433 "textRange": Object {
441 "component": "main.js",
443 "textRange": Object {
452 onIssueSelect={[MockFunction]}
453 onLocationSelect={[MockFunction]}
458 exports[`should render SourceViewer correctly: default 1`] = `
462 "registerPrimaryLocationRef": [Function],
463 "registerSelectedSecondaryLocationRef": [Function],
467 <CrossComponentSourceViewer
470 "analysisDate": "2018-01-01",
471 "excludedFromPurge": true,
479 "component": "main.js",
480 "componentLongName": "main.js",
481 "componentQualifier": "FIL",
482 "componentUuid": "foo1234",
483 "creationDate": "2017-03-01T09:36:01+0100",
485 "flowsWithType": Array [],
486 "key": "AVsae-CQS-9G3txfbFN2",
488 "message": "Reduce the number of conditional operators (4) used in the expression",
489 "project": "myproject",
491 "projectName": "Foo",
492 "rule": "javascript:S1067",
494 "secondaryLocations": Array [],
497 "textRange": Object {
503 "transitions": Array [],
511 "component": "main.js",
512 "componentLongName": "main.js",
513 "componentQualifier": "FIL",
514 "componentUuid": "foo1234",
515 "creationDate": "2017-03-01T09:36:01+0100",
517 "flowsWithType": Array [],
518 "key": "AVsae-CQS-9G3txfbFN2",
520 "message": "Reduce the number of conditional operators (4) used in the expression",
521 "project": "myproject",
523 "projectName": "Foo",
524 "rule": "javascript:S1067",
526 "secondaryLocations": Array [],
529 "textRange": Object {
535 "transitions": Array [],
541 onIssueSelect={[MockFunction]}
542 onLocationSelect={[MockFunction]}
547 exports[`should render SourceViewer correctly: single secondary location 1`] = `
551 "registerPrimaryLocationRef": [Function],
552 "registerSelectedSecondaryLocationRef": [Function],
556 <CrossComponentSourceViewer
559 "analysisDate": "2018-01-01",
560 "excludedFromPurge": true,
568 "component": "main.js",
569 "componentLongName": "main.js",
570 "componentQualifier": "FIL",
571 "componentUuid": "foo1234",
572 "creationDate": "2017-03-01T09:36:01+0100",
576 "component": "main.js",
577 "textRange": Object {
586 "flowsWithType": Array [],
587 "key": "AVsae-CQS-9G3txfbFN2",
589 "message": "Reduce the number of conditional operators (4) used in the expression",
590 "project": "myproject",
592 "projectName": "Foo",
593 "rule": "javascript:S1067",
595 "secondaryLocations": Array [
597 "component": "main.js",
599 "textRange": Object {
607 "component": "main.js",
609 "textRange": Object {
619 "textRange": Object {
625 "transitions": Array [],
633 "component": "main.js",
634 "componentLongName": "main.js",
635 "componentQualifier": "FIL",
636 "componentUuid": "foo1234",
637 "creationDate": "2017-03-01T09:36:01+0100",
641 "component": "main.js",
642 "textRange": Object {
650 "component": "main.js",
651 "textRange": Object {
659 "component": "main.js",
660 "textRange": Object {
670 "component": "main.js",
671 "textRange": Object {
679 "component": "main.js",
680 "textRange": Object {
689 "flowsWithType": Array [],
690 "key": "AVsae-CQS-9G3txfbFN2",
692 "message": "Reduce the number of conditional operators (4) used in the expression",
693 "project": "myproject",
695 "projectName": "Foo",
696 "rule": "javascript:S1067",
698 "secondaryLocations": Array [
700 "component": "main.js",
701 "textRange": Object {
709 "component": "main.js",
710 "textRange": Object {
720 "textRange": Object {
726 "transitions": Array [],
734 "component": "main.js",
736 "textRange": Object {
744 "component": "main.js",
746 "textRange": Object {
755 onIssueSelect={[MockFunction]}
756 onLocationSelect={[MockFunction]}