1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should render CrossComponentSourceViewer correctly 1`] = `
5 <CrossComponentSourceViewer
8 "analysisDate": "2018-01-01",
9 "excludedFromPurge": true,
17 "component": "main.js",
18 "componentLongName": "main.js",
19 "componentQualifier": "FIL",
20 "componentUuid": "foo1234",
21 "creationDate": "2017-03-01T09:36:01+0100",
25 "component": "main.js",
35 "component": "main.js",
47 "key": "AVsae-CQS-9G3txfbFN2",
49 "message": "Reduce the number of conditional operators (4) used in the expression",
50 "project": "myproject",
53 "rule": "javascript:S1067",
55 "secondaryLocations": Array [
57 "component": "main.js",
66 "component": "main.js",
83 "transitions": Array [],
91 "component": "main.js",
92 "componentLongName": "main.js",
93 "componentQualifier": "FIL",
94 "componentUuid": "foo1234",
95 "creationDate": "2017-03-01T09:36:01+0100",
99 "component": "main.js",
100 "textRange": Object {
108 "component": "main.js",
109 "textRange": Object {
117 "component": "main.js",
118 "textRange": Object {
128 "component": "main.js",
129 "textRange": Object {
137 "component": "main.js",
138 "textRange": Object {
147 "fromHotspot": false,
148 "key": "AVsae-CQS-9G3txfbFN2",
150 "message": "Reduce the number of conditional operators (4) used in the expression",
151 "project": "myproject",
153 "projectName": "Foo",
154 "rule": "javascript:S1067",
156 "secondaryLocations": Array [
158 "component": "main.js",
159 "textRange": Object {
167 "component": "main.js",
168 "textRange": Object {
178 "textRange": Object {
184 "transitions": Array [],
192 "component": "main.js",
194 "textRange": Object {
202 "component": "main.js",
204 "textRange": Object {
213 onIssueChange={[MockFunction]}
214 onLoaded={[Function]}
215 onLocationSelect={[MockFunction]}
221 exports[`should render SourceViewer correctly: all secondary locations on same line 1`] = `
227 "analysisDate": "2018-01-01",
228 "excludedFromPurge": true,
234 displayAllIssues={true}
235 displayIssueLocationsCount={true}
236 displayIssueLocationsLink={false}
237 displayLocationMarkers={false}
238 highlightedLocations={
241 "component": "main.js",
243 "textRange": Object {
251 "component": "main.js",
253 "textRange": Object {
261 "component": "main.js",
263 "textRange": Object {
272 loadIssues={[MockFunction]}
273 onIssueChange={[MockFunction]}
274 onIssueSelect={[MockFunction]}
275 onLoaded={[Function]}
276 onLocationSelect={[MockFunction]}
278 selectedIssue="AVsae-CQS-9G3txfbFN2"
284 exports[`should render SourceViewer correctly: default 1`] = `
290 "analysisDate": "2018-01-01",
291 "excludedFromPurge": true,
297 displayAllIssues={true}
298 displayIssueLocationsCount={true}
299 displayIssueLocationsLink={false}
300 displayLocationMarkers={false}
301 highlightedLocations={Array []}
302 loadIssues={[MockFunction]}
303 onIssueChange={[MockFunction]}
304 onIssueSelect={[MockFunction]}
305 onLoaded={[Function]}
306 onLocationSelect={[MockFunction]}
308 selectedIssue="AVsae-CQS-9G3txfbFN2"
314 exports[`should render SourceViewer correctly: single secondary location 1`] = `
320 "analysisDate": "2018-01-01",
321 "excludedFromPurge": true,
327 displayAllIssues={true}
328 displayIssueLocationsCount={true}
329 displayIssueLocationsLink={false}
330 displayLocationMarkers={false}
331 highlightedLocations={
334 "component": "main.js",
336 "textRange": Object {
345 loadIssues={[MockFunction]}
346 onIssueChange={[MockFunction]}
347 onIssueSelect={[MockFunction]}
348 onLoaded={[Function]}
349 onLocationSelect={[MockFunction]}
351 selectedIssue="AVsae-CQS-9G3txfbFN2"