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