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