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 onLocationSelect={[MockFunction]}
217 exports[`should render SourceViewer correctly: all secondary locations on same line 1`] = `
219 <CrossComponentSourceViewer
222 "analysisDate": "2018-01-01",
223 "excludedFromPurge": true,
231 "component": "main.js",
232 "componentLongName": "main.js",
233 "componentQualifier": "FIL",
234 "componentUuid": "foo1234",
235 "creationDate": "2017-03-01T09:36:01+0100",
239 "component": "main.js",
241 "textRange": Object {
249 "component": "main.js",
251 "textRange": Object {
259 "component": "main.js",
261 "textRange": Object {
270 "key": "AVsae-CQS-9G3txfbFN2",
272 "message": "Reduce the number of conditional operators (4) used in the expression",
273 "project": "myproject",
275 "projectName": "Foo",
276 "rule": "javascript:S1067",
278 "secondaryLocations": Array [
280 "component": "main.js",
281 "textRange": Object {
289 "component": "main.js",
290 "textRange": Object {
300 "textRange": Object {
306 "transitions": Array [],
314 "component": "main.js",
315 "componentLongName": "main.js",
316 "componentQualifier": "FIL",
317 "componentUuid": "foo1234",
318 "creationDate": "2017-03-01T09:36:01+0100",
322 "component": "main.js",
323 "textRange": Object {
331 "component": "main.js",
332 "textRange": Object {
340 "component": "main.js",
341 "textRange": Object {
351 "component": "main.js",
352 "textRange": Object {
360 "component": "main.js",
361 "textRange": Object {
370 "key": "AVsae-CQS-9G3txfbFN2",
372 "message": "Reduce the number of conditional operators (4) used in the expression",
373 "project": "myproject",
375 "projectName": "Foo",
376 "rule": "javascript:S1067",
378 "secondaryLocations": Array [
380 "component": "main.js",
381 "textRange": Object {
389 "component": "main.js",
390 "textRange": Object {
400 "textRange": Object {
406 "transitions": Array [],
414 "component": "main.js",
416 "textRange": Object {
424 "component": "main.js",
426 "textRange": Object {
434 "component": "main.js",
436 "textRange": Object {
445 onIssueSelect={[MockFunction]}
446 onLocationSelect={[MockFunction]}
451 exports[`should render SourceViewer correctly: default 1`] = `
453 <CrossComponentSourceViewer
456 "analysisDate": "2018-01-01",
457 "excludedFromPurge": true,
465 "component": "main.js",
466 "componentLongName": "main.js",
467 "componentQualifier": "FIL",
468 "componentUuid": "foo1234",
469 "creationDate": "2017-03-01T09:36:01+0100",
471 "key": "AVsae-CQS-9G3txfbFN2",
473 "message": "Reduce the number of conditional operators (4) used in the expression",
474 "project": "myproject",
476 "projectName": "Foo",
477 "rule": "javascript:S1067",
479 "secondaryLocations": Array [],
482 "textRange": Object {
488 "transitions": Array [],
496 "component": "main.js",
497 "componentLongName": "main.js",
498 "componentQualifier": "FIL",
499 "componentUuid": "foo1234",
500 "creationDate": "2017-03-01T09:36:01+0100",
502 "key": "AVsae-CQS-9G3txfbFN2",
504 "message": "Reduce the number of conditional operators (4) used in the expression",
505 "project": "myproject",
507 "projectName": "Foo",
508 "rule": "javascript:S1067",
510 "secondaryLocations": Array [],
513 "textRange": Object {
519 "transitions": Array [],
525 onIssueSelect={[MockFunction]}
526 onLocationSelect={[MockFunction]}
531 exports[`should render SourceViewer correctly: single secondary location 1`] = `
533 <CrossComponentSourceViewer
536 "analysisDate": "2018-01-01",
537 "excludedFromPurge": true,
545 "component": "main.js",
546 "componentLongName": "main.js",
547 "componentQualifier": "FIL",
548 "componentUuid": "foo1234",
549 "creationDate": "2017-03-01T09:36:01+0100",
553 "component": "main.js",
555 "textRange": Object {
564 "key": "AVsae-CQS-9G3txfbFN2",
566 "message": "Reduce the number of conditional operators (4) used in the expression",
567 "project": "myproject",
569 "projectName": "Foo",
570 "rule": "javascript:S1067",
572 "secondaryLocations": Array [
574 "component": "main.js",
575 "textRange": Object {
583 "component": "main.js",
584 "textRange": Object {
594 "textRange": Object {
600 "transitions": Array [],
608 "component": "main.js",
609 "componentLongName": "main.js",
610 "componentQualifier": "FIL",
611 "componentUuid": "foo1234",
612 "creationDate": "2017-03-01T09:36:01+0100",
616 "component": "main.js",
617 "textRange": Object {
625 "component": "main.js",
626 "textRange": Object {
634 "component": "main.js",
635 "textRange": Object {
645 "component": "main.js",
646 "textRange": Object {
654 "component": "main.js",
655 "textRange": Object {
664 "key": "AVsae-CQS-9G3txfbFN2",
666 "message": "Reduce the number of conditional operators (4) used in the expression",
667 "project": "myproject",
669 "projectName": "Foo",
670 "rule": "javascript:S1067",
672 "secondaryLocations": Array [
674 "component": "main.js",
675 "textRange": Object {
683 "component": "main.js",
684 "textRange": Object {
694 "textRange": Object {
700 "transitions": Array [],
708 "component": "main.js",
710 "textRange": Object {
719 onIssueSelect={[MockFunction]}
720 onLocationSelect={[MockFunction]}