]> source.dussan.org Git - sonarqube.git/blob
a9b7f2b3143e95bba90457d92f7538df6d3aa3e7
[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         "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": Object {
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         Object {
44           "analysisDate": "2018-01-01",
45           "excludedFromPurge": true,
46           "isMain": true,
47           "name": "master",
48         }
49       }
50       displayAllIssues={false}
51       displayIssueLocationsCount={true}
52       displayIssueLocationsLink={true}
53       displayLocationMarkers={true}
54       duplicationsByLine={Object {}}
55       hasSourcesAfter={false}
56       hasSourcesBefore={false}
57       highlightedSymbols={Array []}
58       issueLocationsByLine={
59         Object {
60           "25": Array [
61             Object {
62               "from": 0,
63               "line": 25,
64               "to": 999999,
65             },
66           ],
67           "26": Array [
68             Object {
69               "from": 0,
70               "line": 26,
71               "to": 15,
72             },
73           ],
74         }
75       }
76       issues={
77         Array [
78           Object {
79             "actions": Array [],
80             "component": "main.js",
81             "componentLongName": "main.js",
82             "componentQualifier": "FIL",
83             "componentUuid": "foo1234",
84             "creationDate": "2017-03-01T09:36:01+0100",
85             "flows": Array [],
86             "flowsWithType": Array [],
87             "key": "AVsae-CQS-9G3txfbFN2",
88             "line": 25,
89             "message": "Reduce the number of conditional operators (4) used in the expression",
90             "project": "myproject",
91             "projectKey": "foo",
92             "projectName": "Foo",
93             "rule": "javascript:S1067",
94             "ruleName": "foo",
95             "secondaryLocations": Array [],
96             "severity": "MAJOR",
97             "status": "OPEN",
98             "textRange": Object {
99               "endLine": 26,
100               "endOffset": 15,
101               "startLine": 25,
102               "startOffset": 0,
103             },
104             "transitions": Array [],
105             "type": "BUG",
106           },
107         ]
108       }
109       issuesByLine={
110         Object {
111           "26": Array [
112             Object {
113               "actions": Array [],
114               "component": "main.js",
115               "componentLongName": "main.js",
116               "componentQualifier": "FIL",
117               "componentUuid": "foo1234",
118               "creationDate": "2017-03-01T09:36:01+0100",
119               "flows": Array [],
120               "flowsWithType": Array [],
121               "key": "AVsae-CQS-9G3txfbFN2",
122               "line": 25,
123               "message": "Reduce the number of conditional operators (4) used in the expression",
124               "project": "myproject",
125               "projectKey": "foo",
126               "projectName": "Foo",
127               "rule": "javascript:S1067",
128               "ruleName": "foo",
129               "secondaryLocations": Array [],
130               "severity": "MAJOR",
131               "status": "OPEN",
132               "textRange": Object {
133                 "endLine": 26,
134                 "endOffset": 15,
135                 "startLine": 25,
136                 "startOffset": 0,
137               },
138               "transitions": Array [],
139               "type": "BUG",
140             },
141           ],
142         }
143       }
144       loadDuplications={[Function]}
145       loadSourcesAfter={[Function]}
146       loadSourcesBefore={[Function]}
147       loadingSourcesAfter={false}
148       loadingSourcesBefore={false}
149       onIssueChange={[Function]}
150       onIssuePopupToggle={[Function]}
151       onIssueSelect={[Function]}
152       onIssueUnselect={[Function]}
153       onIssuesClose={[Function]}
154       onIssuesOpen={[Function]}
155       onSymbolClick={[Function]}
156       openIssuesByLine={Object {}}
157       renderDuplicationPopup={[Function]}
158       sources={Array []}
159       symbolsByLine={Object {}}
160     />
161   </div>
162 </ContextProvider>
163 `;