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`] = `
21 ariaLabel="code_viewer.loading"
26 exports[`should render correctly 2`] = `
32 "branchLike": undefined,
37 <ComponentSourceSnippetGroupViewer
38 duplicationsByLine={Object {}}
39 isLastOccurenceOfPrimaryComponent={false}
43 "component": "project:main.js",
44 "componentLongName": "main.js",
45 "componentQualifier": "FIL",
46 "componentUuid": "foo1234",
47 "creationDate": "2017-03-01T09:36:01+0100",
51 "component": "main.js",
60 "component": "main.js",
69 "component": "main.js",
80 "component": "main.js",
89 "component": "main.js",
99 "flowsWithType": Array [],
102 "message": "Reduce the number of conditional operators (4) used in the expression",
103 "project": "myproject",
105 "projectName": "Foo",
106 "rule": "javascript:S1067",
108 "secondaryLocations": Array [
110 "component": "main.js",
111 "textRange": Object {
119 "component": "main.js",
120 "textRange": Object {
130 "textRange": Object {
136 "transitions": Array [],
140 issuesByLine={Object {}}
141 lastSnippetGroup={true}
142 loadDuplications={[Function]}
146 "component": "project:main.js",
148 "textRange": Object {
157 onIssueSelect={[MockFunction]}
158 onLocationSelect={[MockFunction]}
159 renderDuplicationPopup={[Function]}
162 "component": Object {},
165 "component": "project:main.js",
167 "textRange": Object {
183 exports[`should render correctly: no component found 1`] = `
189 "branchLike": undefined,
194 <ComponentSourceSnippetGroupViewer
195 duplicationsByLine={Object {}}
196 isLastOccurenceOfPrimaryComponent={false}
200 "component": "test.js",
201 "componentLongName": "main.js",
202 "componentQualifier": "FIL",
203 "componentUuid": "foo1234",
204 "creationDate": "2017-03-01T09:36:01+0100",
208 "component": "main.js",
209 "textRange": Object {
217 "component": "main.js",
218 "textRange": Object {
226 "component": "main.js",
227 "textRange": Object {
237 "component": "main.js",
238 "textRange": Object {
246 "component": "main.js",
247 "textRange": Object {
256 "flowsWithType": Array [],
259 "message": "Reduce the number of conditional operators (4) used in the expression",
260 "project": "myproject",
262 "projectName": "Foo",
263 "rule": "javascript:S1067",
265 "secondaryLocations": Array [
267 "component": "main.js",
268 "textRange": Object {
276 "component": "main.js",
277 "textRange": Object {
287 "textRange": Object {
293 "transitions": Array [],
297 issuesByLine={Object {}}
298 lastSnippetGroup={false}
299 loadDuplications={[Function]}
301 onIssueSelect={[MockFunction]}
302 onLocationSelect={[MockFunction]}
303 renderDuplicationPopup={[Function]}
306 "component": Object {},
307 "locations": Array [],
317 "branchLike": undefined,
322 <ComponentSourceSnippetGroupViewer
323 duplicationsByLine={Object {}}
324 isLastOccurenceOfPrimaryComponent={false}
328 "component": "test.js",
329 "componentLongName": "main.js",
330 "componentQualifier": "FIL",
331 "componentUuid": "foo1234",
332 "creationDate": "2017-03-01T09:36:01+0100",
336 "component": "main.js",
337 "textRange": Object {
345 "component": "main.js",
346 "textRange": Object {
354 "component": "main.js",
355 "textRange": Object {
365 "component": "main.js",
366 "textRange": Object {
374 "component": "main.js",
375 "textRange": Object {
384 "flowsWithType": Array [],
387 "message": "Reduce the number of conditional operators (4) used in the expression",
388 "project": "myproject",
390 "projectName": "Foo",
391 "rule": "javascript:S1067",
393 "secondaryLocations": Array [
395 "component": "main.js",
396 "textRange": Object {
404 "component": "main.js",
405 "textRange": Object {
415 "textRange": Object {
421 "transitions": Array [],
425 issuesByLine={Object {}}
426 lastSnippetGroup={true}
427 loadDuplications={[Function]}
431 "component": "project:main.js",
433 "textRange": Object {
442 onIssueSelect={[MockFunction]}
443 onLocationSelect={[MockFunction]}
444 renderDuplicationPopup={[Function]}
447 "component": Object {},
450 "component": "project:main.js",
452 "textRange": Object {