1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`Should handle no access rights 1`] = `
8 code_viewer.no_source_code_displayed_due_to_security
12 exports[`should handle duplication popup 1`] = `
18 exports[`should render correctly 1`] = `
24 exports[`should render correctly 2`] = `
30 "branchLike": undefined,
35 "duplicationDensity": "1.0",
40 "project": "my-project",
41 "projectName": "MyProject",
48 <ComponentSourceSnippetGroupViewer
49 duplicationsByLine={Object {}}
50 isLastOccurenceOfPrimaryComponent={true}
54 "component": "main.js",
55 "componentLongName": "main.js",
56 "componentQualifier": "FIL",
57 "componentUuid": "foo1234",
58 "creationDate": "2017-03-01T09:36:01+0100",
62 "component": "main.js",
71 "component": "main.js",
80 "component": "main.js",
91 "component": "main.js",
100 "component": "main.js",
101 "textRange": Object {
110 "fromHotspot": false,
113 "message": "Reduce the number of conditional operators (4) used in the expression",
114 "project": "myproject",
116 "projectName": "Foo",
117 "rule": "javascript:S1067",
119 "secondaryLocations": Array [
121 "component": "main.js",
122 "textRange": Object {
130 "component": "main.js",
131 "textRange": Object {
141 "textRange": Object {
147 "transitions": Array [],
151 issuesByLine={Object {}}
152 lastSnippetGroup={true}
153 loadDuplications={[Function]}
157 "component": "main.js",
159 "textRange": Object {
168 onIssueChange={[MockFunction]}
169 onIssuePopupToggle={[Function]}
170 onLocationSelect={[MockFunction]}
171 renderDuplicationPopup={[Function]}
172 scroll={[MockFunction]}
175 "component": Object {
179 "duplicationDensity": "1.0",
184 "project": "my-project",
185 "projectName": "MyProject",
191 "component": "main.js",
193 "textRange": Object {
203 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
204 "coverageStatus": "covered",
205 "coveredConditions": 2,
209 "scmAuthor": "simon.brandhof@sonarsource.com",
210 "scmDate": "2018-12-11T10:48:39+0100",
211 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
221 exports[`should render correctly: no component found 1`] = `
227 "branchLike": undefined,
232 <ComponentSourceSnippetGroupViewer
233 duplicationsByLine={Object {}}
234 isLastOccurenceOfPrimaryComponent={false}
238 "component": "test.js",
239 "componentLongName": "main.js",
240 "componentQualifier": "FIL",
241 "componentUuid": "foo1234",
242 "creationDate": "2017-03-01T09:36:01+0100",
246 "component": "main.js",
247 "textRange": Object {
255 "component": "main.js",
256 "textRange": Object {
264 "component": "main.js",
265 "textRange": Object {
275 "component": "main.js",
276 "textRange": Object {
284 "component": "main.js",
285 "textRange": Object {
294 "fromHotspot": false,
297 "message": "Reduce the number of conditional operators (4) used in the expression",
298 "project": "myproject",
300 "projectName": "Foo",
301 "rule": "javascript:S1067",
303 "secondaryLocations": Array [
305 "component": "main.js",
306 "textRange": Object {
314 "component": "main.js",
315 "textRange": Object {
325 "textRange": Object {
331 "transitions": Array [],
335 issuesByLine={Object {}}
336 lastSnippetGroup={false}
337 loadDuplications={[Function]}
339 onIssueChange={[MockFunction]}
340 onIssuePopupToggle={[Function]}
341 onLocationSelect={[MockFunction]}
342 renderDuplicationPopup={[Function]}
343 scroll={[MockFunction]}
346 "component": Object {},
347 "locations": Array [],
357 "branchLike": undefined,
362 "duplicationDensity": "1.0",
367 "project": "my-project",
368 "projectName": "MyProject",
375 <ComponentSourceSnippetGroupViewer
376 duplicationsByLine={Object {}}
377 isLastOccurenceOfPrimaryComponent={false}
381 "component": "test.js",
382 "componentLongName": "main.js",
383 "componentQualifier": "FIL",
384 "componentUuid": "foo1234",
385 "creationDate": "2017-03-01T09:36:01+0100",
389 "component": "main.js",
390 "textRange": Object {
398 "component": "main.js",
399 "textRange": Object {
407 "component": "main.js",
408 "textRange": Object {
418 "component": "main.js",
419 "textRange": Object {
427 "component": "main.js",
428 "textRange": Object {
437 "fromHotspot": false,
440 "message": "Reduce the number of conditional operators (4) used in the expression",
441 "project": "myproject",
443 "projectName": "Foo",
444 "rule": "javascript:S1067",
446 "secondaryLocations": Array [
448 "component": "main.js",
449 "textRange": Object {
457 "component": "main.js",
458 "textRange": Object {
468 "textRange": Object {
474 "transitions": Array [],
478 issuesByLine={Object {}}
479 lastSnippetGroup={true}
480 loadDuplications={[Function]}
484 "component": "main.js",
486 "textRange": Object {
495 onIssueChange={[MockFunction]}
496 onIssuePopupToggle={[Function]}
497 onLocationSelect={[MockFunction]}
498 renderDuplicationPopup={[Function]}
499 scroll={[MockFunction]}
502 "component": Object {
506 "duplicationDensity": "1.0",
511 "project": "my-project",
512 "projectName": "MyProject",
518 "component": "main.js",
520 "textRange": Object {
530 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
531 "coverageStatus": "covered",
532 "coveredConditions": 2,
536 "scmAuthor": "simon.brandhof@sonarsource.com",
537 "scmDate": "2018-12-11T10:48:39+0100",
538 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",