]> source.dussan.org Git - sonarqube.git/blob
1c54b6275983ef20761aad43f45434823a41d996
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <ContextProvider
5   value={
6     Object {
7       "branchLike": Object {
8         "analysisDate": "2018-01-01",
9         "excludedFromPurge": true,
10         "isMain": true,
11         "name": "master",
12       },
13       "file": Object {
14         "key": "foo",
15         "leakPeriodDate": "2018-06-20T17:12:19+0200",
16         "measures": Object {
17           "coverage": "85.2",
18           "duplicationDensity": "1.0",
19           "issues": "12",
20           "lines": "56",
21         },
22         "path": "foo/bar.ts",
23         "project": "my-project",
24         "projectName": "MyProject",
25         "q": "FIL",
26         "uuid": "foo-bar",
27       },
28     }
29   }
30 >
31   <div
32     className="source-viewer"
33   >
34     <ContextConsumer>
35       <Component />
36     </ContextConsumer>
37     <SourceViewerCode
38       branchLike={
39         Object {
40           "analysisDate": "2018-01-01",
41           "excludedFromPurge": true,
42           "isMain": true,
43           "name": "master",
44         }
45       }
46       componentKey="my-component"
47       displayAllIssues={false}
48       displayIssueLocationsCount={true}
49       displayIssueLocationsLink={true}
50       displayLocationMarkers={true}
51       duplicationsByLine={Object {}}
52       hasSourcesAfter={false}
53       hasSourcesBefore={false}
54       highlightedSymbols={Array []}
55       issueLocationsByLine={
56         Object {
57           "25": Array [
58             Object {
59               "from": 0,
60               "line": 25,
61               "to": 999999,
62             },
63           ],
64           "26": Array [
65             Object {
66               "from": 0,
67               "line": 26,
68               "to": 15,
69             },
70           ],
71         }
72       }
73       issues={
74         Array [
75           Object {
76             "actions": Array [],
77             "component": "main.js",
78             "componentLongName": "main.js",
79             "componentQualifier": "FIL",
80             "componentUuid": "foo1234",
81             "creationDate": "2017-03-01T09:36:01+0100",
82             "flows": Array [],
83             "fromHotspot": false,
84             "key": "AVsae-CQS-9G3txfbFN2",
85             "line": 25,
86             "message": "Reduce the number of conditional operators (4) used in the expression",
87             "organization": "myorg",
88             "project": "myproject",
89             "projectKey": "foo",
90             "projectName": "Foo",
91             "projectOrganization": "org",
92             "rule": "javascript:S1067",
93             "ruleName": "foo",
94             "secondaryLocations": Array [],
95             "severity": "MAJOR",
96             "status": "OPEN",
97             "textRange": Object {
98               "endLine": 26,
99               "endOffset": 15,
100               "startLine": 25,
101               "startOffset": 0,
102             },
103             "transitions": Array [],
104             "type": "BUG",
105           },
106         ]
107       }
108       issuesByLine={
109         Object {
110           "26": Array [
111             Object {
112               "actions": Array [],
113               "component": "main.js",
114               "componentLongName": "main.js",
115               "componentQualifier": "FIL",
116               "componentUuid": "foo1234",
117               "creationDate": "2017-03-01T09:36:01+0100",
118               "flows": Array [],
119               "fromHotspot": false,
120               "key": "AVsae-CQS-9G3txfbFN2",
121               "line": 25,
122               "message": "Reduce the number of conditional operators (4) used in the expression",
123               "organization": "myorg",
124               "project": "myproject",
125               "projectKey": "foo",
126               "projectName": "Foo",
127               "projectOrganization": "org",
128               "rule": "javascript:S1067",
129               "ruleName": "foo",
130               "secondaryLocations": Array [],
131               "severity": "MAJOR",
132               "status": "OPEN",
133               "textRange": Object {
134                 "endLine": 26,
135                 "endOffset": 15,
136                 "startLine": 25,
137                 "startOffset": 0,
138               },
139               "transitions": Array [],
140               "type": "BUG",
141             },
142           ],
143         }
144       }
145       loadDuplications={[Function]}
146       loadSourcesAfter={[Function]}
147       loadSourcesBefore={[Function]}
148       loadingSourcesAfter={false}
149       loadingSourcesBefore={false}
150       onIssueChange={[Function]}
151       onIssuePopupToggle={[Function]}
152       onIssueSelect={[Function]}
153       onIssueUnselect={[Function]}
154       onIssuesClose={[Function]}
155       onIssuesOpen={[Function]}
156       onLinePopupToggle={[Function]}
157       onSymbolClick={[Function]}
158       openIssuesByLine={Object {}}
159       renderDuplicationPopup={[Function]}
160       sources={Array []}
161       symbolsByLine={Object {}}
162     />
163   </div>
164 </ContextProvider>
165 `;