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,
32 "canMarkAsFavorite": true,
34 "key": "project:main.js",
35 "longName": "main.js",
38 "duplicationDensity": "1.0",
45 "projectName": "MyProject",
52 <ComponentSourceSnippetGroupViewer
53 duplicationsByLine={Object {}}
54 isLastOccurenceOfPrimaryComponent={false}
58 "component": "main.js",
59 "componentLongName": "main.js",
60 "componentQualifier": "FIL",
61 "componentUuid": "foo1234",
62 "creationDate": "2017-03-01T09:36:01+0100",
66 "component": "main.js",
75 "component": "main.js",
84 "component": "main.js",
95 "component": "main.js",
104 "component": "main.js",
105 "textRange": Object {
114 "fromHotspot": false,
117 "message": "Reduce the number of conditional operators (4) used in the expression",
118 "project": "myproject",
120 "projectName": "Foo",
121 "rule": "javascript:S1067",
123 "secondaryLocations": Array [
125 "component": "main.js",
126 "textRange": Object {
134 "component": "main.js",
135 "textRange": Object {
145 "textRange": Object {
151 "transitions": Array [],
155 issuesByLine={Object {}}
156 lastSnippetGroup={true}
157 loadDuplications={[Function]}
161 "component": "main.js",
163 "textRange": Object {
172 onIssueChange={[MockFunction]}
173 onIssuePopupToggle={[Function]}
174 onLocationSelect={[MockFunction]}
175 renderDuplicationPopup={[Function]}
176 scroll={[MockFunction]}
179 "component": Object {
180 "canMarkAsFavorite": true,
182 "key": "project:main.js",
183 "longName": "main.js",
186 "duplicationDensity": "1.0",
192 "project": "project",
193 "projectName": "MyProject",
199 "component": "main.js",
201 "textRange": Object {
211 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
212 "coverageStatus": "covered",
213 "coveredConditions": 2,
217 "scmAuthor": "simon.brandhof@sonarsource.com",
218 "scmDate": "2018-12-11T10:48:39+0100",
219 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
229 exports[`should render correctly: no component found 1`] = `
235 "branchLike": undefined,
240 <ComponentSourceSnippetGroupViewer
241 duplicationsByLine={Object {}}
242 isLastOccurenceOfPrimaryComponent={false}
246 "component": "test.js",
247 "componentLongName": "main.js",
248 "componentQualifier": "FIL",
249 "componentUuid": "foo1234",
250 "creationDate": "2017-03-01T09:36:01+0100",
254 "component": "main.js",
255 "textRange": Object {
263 "component": "main.js",
264 "textRange": Object {
272 "component": "main.js",
273 "textRange": Object {
283 "component": "main.js",
284 "textRange": Object {
292 "component": "main.js",
293 "textRange": Object {
302 "fromHotspot": false,
305 "message": "Reduce the number of conditional operators (4) used in the expression",
306 "project": "myproject",
308 "projectName": "Foo",
309 "rule": "javascript:S1067",
311 "secondaryLocations": Array [
313 "component": "main.js",
314 "textRange": Object {
322 "component": "main.js",
323 "textRange": Object {
333 "textRange": Object {
339 "transitions": Array [],
343 issuesByLine={Object {}}
344 lastSnippetGroup={false}
345 loadDuplications={[Function]}
347 onIssueChange={[MockFunction]}
348 onIssuePopupToggle={[Function]}
349 onLocationSelect={[MockFunction]}
350 renderDuplicationPopup={[Function]}
351 scroll={[MockFunction]}
354 "component": Object {},
355 "locations": Array [],
365 "branchLike": undefined,
367 "canMarkAsFavorite": true,
369 "key": "project:main.js",
370 "longName": "main.js",
373 "duplicationDensity": "1.0",
379 "project": "project",
380 "projectName": "MyProject",
387 <ComponentSourceSnippetGroupViewer
388 duplicationsByLine={Object {}}
389 isLastOccurenceOfPrimaryComponent={false}
393 "component": "test.js",
394 "componentLongName": "main.js",
395 "componentQualifier": "FIL",
396 "componentUuid": "foo1234",
397 "creationDate": "2017-03-01T09:36:01+0100",
401 "component": "main.js",
402 "textRange": Object {
410 "component": "main.js",
411 "textRange": Object {
419 "component": "main.js",
420 "textRange": Object {
430 "component": "main.js",
431 "textRange": Object {
439 "component": "main.js",
440 "textRange": Object {
449 "fromHotspot": false,
452 "message": "Reduce the number of conditional operators (4) used in the expression",
453 "project": "myproject",
455 "projectName": "Foo",
456 "rule": "javascript:S1067",
458 "secondaryLocations": Array [
460 "component": "main.js",
461 "textRange": Object {
469 "component": "main.js",
470 "textRange": Object {
480 "textRange": Object {
486 "transitions": Array [],
490 issuesByLine={Object {}}
491 lastSnippetGroup={true}
492 loadDuplications={[Function]}
496 "component": "main.js",
498 "textRange": Object {
507 onIssueChange={[MockFunction]}
508 onIssuePopupToggle={[Function]}
509 onLocationSelect={[MockFunction]}
510 renderDuplicationPopup={[Function]}
511 scroll={[MockFunction]}
514 "component": Object {
515 "canMarkAsFavorite": true,
517 "key": "project:main.js",
518 "longName": "main.js",
521 "duplicationDensity": "1.0",
527 "project": "project",
528 "projectName": "MyProject",
534 "component": "main.js",
536 "textRange": Object {
546 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
547 "coverageStatus": "covered",
548 "coveredConditions": 2,
552 "scmAuthor": "simon.brandhof@sonarsource.com",
553 "scmDate": "2018-12-11T10:48:39+0100",
554 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",