1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should render CrossComponentSourceViewer correctly 1`] = `
5 <CrossComponentSourceViewer
8 "analysisDate": "2018-01-01",
9 "excludedFromPurge": true,
17 "component": "main.js",
18 "componentLongName": "main.js",
19 "componentQualifier": "FIL",
20 "componentUuid": "foo1234",
21 "creationDate": "2017-03-01T09:36:01+0100",
25 "component": "main.js",
35 "component": "main.js",
46 "key": "AVsae-CQS-9G3txfbFN2",
48 "message": "Reduce the number of conditional operators (4) used in the expression",
49 "project": "myproject",
52 "rule": "javascript:S1067",
54 "secondaryLocations": Array [
56 "component": "main.js",
65 "component": "main.js",
82 "transitions": Array [],
90 "component": "main.js",
91 "componentLongName": "main.js",
92 "componentQualifier": "FIL",
93 "componentUuid": "foo1234",
94 "creationDate": "2017-03-01T09:36:01+0100",
98 "component": "main.js",
107 "component": "main.js",
108 "textRange": Object {
116 "component": "main.js",
117 "textRange": Object {
127 "component": "main.js",
128 "textRange": Object {
136 "component": "main.js",
137 "textRange": Object {
146 "key": "AVsae-CQS-9G3txfbFN2",
148 "message": "Reduce the number of conditional operators (4) used in the expression",
149 "project": "myproject",
151 "projectName": "Foo",
152 "rule": "javascript:S1067",
154 "secondaryLocations": Array [
156 "component": "main.js",
157 "textRange": Object {
165 "component": "main.js",
166 "textRange": Object {
176 "textRange": Object {
182 "transitions": Array [],
190 "component": "main.js",
192 "textRange": Object {
200 "component": "main.js",
202 "textRange": Object {
211 onIssueSelect={[MockFunction]}
212 onLoaded={[Function]}
213 onLocationSelect={[MockFunction]}
218 exports[`should render SourceViewer correctly: all secondary locations on same line 1`] = `
220 <CrossComponentSourceViewer
223 "analysisDate": "2018-01-01",
224 "excludedFromPurge": true,
232 "component": "main.js",
233 "componentLongName": "main.js",
234 "componentQualifier": "FIL",
235 "componentUuid": "foo1234",
236 "creationDate": "2017-03-01T09:36:01+0100",
240 "component": "main.js",
242 "textRange": Object {
250 "component": "main.js",
252 "textRange": Object {
260 "component": "main.js",
262 "textRange": Object {
271 "key": "AVsae-CQS-9G3txfbFN2",
273 "message": "Reduce the number of conditional operators (4) used in the expression",
274 "project": "myproject",
276 "projectName": "Foo",
277 "rule": "javascript:S1067",
279 "secondaryLocations": Array [
281 "component": "main.js",
282 "textRange": Object {
290 "component": "main.js",
291 "textRange": Object {
301 "textRange": Object {
307 "transitions": Array [],
315 "component": "main.js",
316 "componentLongName": "main.js",
317 "componentQualifier": "FIL",
318 "componentUuid": "foo1234",
319 "creationDate": "2017-03-01T09:36:01+0100",
323 "component": "main.js",
324 "textRange": Object {
332 "component": "main.js",
333 "textRange": Object {
341 "component": "main.js",
342 "textRange": Object {
352 "component": "main.js",
353 "textRange": Object {
361 "component": "main.js",
362 "textRange": Object {
371 "key": "AVsae-CQS-9G3txfbFN2",
373 "message": "Reduce the number of conditional operators (4) used in the expression",
374 "project": "myproject",
376 "projectName": "Foo",
377 "rule": "javascript:S1067",
379 "secondaryLocations": Array [
381 "component": "main.js",
382 "textRange": Object {
390 "component": "main.js",
391 "textRange": Object {
401 "textRange": Object {
407 "transitions": Array [],
415 "component": "main.js",
417 "textRange": Object {
425 "component": "main.js",
427 "textRange": Object {
435 "component": "main.js",
437 "textRange": Object {
446 onIssueSelect={[MockFunction]}
447 onLoaded={[Function]}
448 onLocationSelect={[MockFunction]}
453 exports[`should render SourceViewer correctly: default 1`] = `
455 <CrossComponentSourceViewer
458 "analysisDate": "2018-01-01",
459 "excludedFromPurge": true,
467 "component": "main.js",
468 "componentLongName": "main.js",
469 "componentQualifier": "FIL",
470 "componentUuid": "foo1234",
471 "creationDate": "2017-03-01T09:36:01+0100",
473 "key": "AVsae-CQS-9G3txfbFN2",
475 "message": "Reduce the number of conditional operators (4) used in the expression",
476 "project": "myproject",
478 "projectName": "Foo",
479 "rule": "javascript:S1067",
481 "secondaryLocations": Array [],
484 "textRange": Object {
490 "transitions": Array [],
498 "component": "main.js",
499 "componentLongName": "main.js",
500 "componentQualifier": "FIL",
501 "componentUuid": "foo1234",
502 "creationDate": "2017-03-01T09:36:01+0100",
504 "key": "AVsae-CQS-9G3txfbFN2",
506 "message": "Reduce the number of conditional operators (4) used in the expression",
507 "project": "myproject",
509 "projectName": "Foo",
510 "rule": "javascript:S1067",
512 "secondaryLocations": Array [],
515 "textRange": Object {
521 "transitions": Array [],
527 onIssueSelect={[MockFunction]}
528 onLoaded={[Function]}
529 onLocationSelect={[MockFunction]}
534 exports[`should render SourceViewer correctly: single secondary location 1`] = `
536 <CrossComponentSourceViewer
539 "analysisDate": "2018-01-01",
540 "excludedFromPurge": true,
548 "component": "main.js",
549 "componentLongName": "main.js",
550 "componentQualifier": "FIL",
551 "componentUuid": "foo1234",
552 "creationDate": "2017-03-01T09:36:01+0100",
556 "component": "main.js",
558 "textRange": Object {
567 "key": "AVsae-CQS-9G3txfbFN2",
569 "message": "Reduce the number of conditional operators (4) used in the expression",
570 "project": "myproject",
572 "projectName": "Foo",
573 "rule": "javascript:S1067",
575 "secondaryLocations": Array [
577 "component": "main.js",
578 "textRange": Object {
586 "component": "main.js",
587 "textRange": Object {
597 "textRange": Object {
603 "transitions": Array [],
611 "component": "main.js",
612 "componentLongName": "main.js",
613 "componentQualifier": "FIL",
614 "componentUuid": "foo1234",
615 "creationDate": "2017-03-01T09:36:01+0100",
619 "component": "main.js",
620 "textRange": Object {
628 "component": "main.js",
629 "textRange": Object {
637 "component": "main.js",
638 "textRange": Object {
648 "component": "main.js",
649 "textRange": Object {
657 "component": "main.js",
658 "textRange": Object {
667 "key": "AVsae-CQS-9G3txfbFN2",
669 "message": "Reduce the number of conditional operators (4) used in the expression",
670 "project": "myproject",
672 "projectName": "Foo",
673 "rule": "javascript:S1067",
675 "secondaryLocations": Array [
677 "component": "main.js",
678 "textRange": Object {
686 "component": "main.js",
687 "textRange": Object {
697 "textRange": Object {
703 "transitions": Array [],
711 "component": "main.js",
713 "textRange": Object {
722 onIssueSelect={[MockFunction]}
723 onLoaded={[Function]}
724 onLocationSelect={[MockFunction]}