1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should render flow locations in different file 1`] = `
4 <CrossFileLocationsNavigator
5 isTaintAnalysis={false}
10 "componentLongName": "main.js",
11 "componentQualifier": "FIL",
12 "componentUuid": "foo1234",
13 "creationDate": "2017-03-01T09:36:01+0100",
18 "componentName": "src/foo.js",
19 "msg": "Do not use foo",
29 "componentName": "src/bar.js",
30 "msg": "Do not use bar",
43 "message": "Reduce the number of conditional operators (4) used in the expression",
44 "organization": "myorg",
45 "project": "myproject",
48 "projectOrganization": "org",
49 "rule": "javascript:S1067",
51 "secondaryLocations": Array [],
60 "transitions": Array [],
68 "componentName": "src/foo.js",
69 "msg": "Do not use foo",
79 "componentName": "src/bar.js",
80 "msg": "Do not use bar",
90 onLocationSelect={[MockFunction]}
91 scroll={[MockFunction]}
95 exports[`should render flow locations in the same file 1`] = `
97 className="concise-issue-locations-navigator spacer-top"
99 <ConciseIssueLocationsNavigatorLocation
101 isTaintAnalysis={false}
103 message="Do not use foo"
104 onClick={[MockFunction]}
105 scroll={[MockFunction]}
109 <ConciseIssueLocationsNavigatorLocation
111 isTaintAnalysis={false}
113 message="Do not use foo"
114 onClick={[MockFunction]}
115 scroll={[MockFunction]}
122 exports[`should render secondary locations in the same file 1`] = `
124 className="concise-issue-locations-navigator spacer-top"
126 <ConciseIssueLocationsNavigatorLocation
128 isTaintAnalysis={false}
130 message="Do not use foo"
131 onClick={[MockFunction]}
132 scroll={[MockFunction]}
136 <ConciseIssueLocationsNavigatorLocation
138 isTaintAnalysis={false}
140 message="Do not use foo"
141 onClick={[MockFunction]}
142 scroll={[MockFunction]}
149 exports[`should render selected flow locations in the same file 1`] = `
151 className="concise-issue-locations-navigator spacer-top"
153 <ConciseIssueLocationsNavigatorLocation
155 isTaintAnalysis={false}
157 message="Do not use foo"
158 onClick={[MockFunction]}
159 scroll={[MockFunction]}
163 <ConciseIssueLocationsNavigatorLocation
165 isTaintAnalysis={false}
167 message="Do not use foo"
168 onClick={[MockFunction]}
169 scroll={[MockFunction]}
176 exports[`should render taint analysis issues correctly 1`] = `
177 <CrossFileLocationsNavigator
178 isTaintAnalysis={true}
183 "componentLongName": "main.js",
184 "componentQualifier": "FIL",
185 "componentUuid": "foo1234",
186 "creationDate": "2017-03-01T09:36:01+0100",
191 "componentName": "src/foo.js",
192 "msg": "Do not use foo",
193 "textRange": Object {
202 "componentName": "src/foo.js",
203 "msg": "Do not use foo",
204 "textRange": Object {
213 "componentName": "src/bar.js",
214 "msg": "Do not use bar",
215 "textRange": Object {
224 "fromHotspot": false,
227 "message": "Reduce the number of conditional operators (4) used in the expression",
228 "organization": "myorg",
229 "project": "myproject",
231 "projectName": "Foo",
232 "projectOrganization": "org",
233 "rule": "javascript:S1067",
235 "secondaryLocations": Array [],
238 "textRange": Object {
244 "transitions": Array [],
245 "type": "VULNERABILITY",
252 "componentName": "src/foo.js",
253 "msg": "Do not use foo",
254 "textRange": Object {
263 "componentName": "src/foo.js",
264 "msg": "Do not use foo",
265 "textRange": Object {
274 "componentName": "src/bar.js",
275 "msg": "Do not use bar",
276 "textRange": Object {
285 onLocationSelect={[MockFunction]}
286 scroll={[MockFunction]}