]> source.dussan.org Git - sonarqube.git/blob
363f646c08b5203d666784136f94899689b0ab87
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render closed 1`] = `
4 <FacetBox
5   property="standards"
6 >
7   <FacetHeader
8     name="issues.facet.standards"
9     onClear={[Function]}
10     onClick={[Function]}
11     open={false}
12     values={Array []}
13   />
14 </FacetBox>
15 `;
16
17 exports[`should render empty sub-facet 1`] = `
18 <FacetBox
19   className="is-inner"
20   property="sansTop25"
21 >
22   <FacetHeader
23     name="issues.facet.sansTop25"
24     onClick={[Function]}
25     open={true}
26     values={Array []}
27   />
28   <DeferredSpinner
29     loading={false}
30     timeout={100}
31   />
32   <div
33     className="search-navigator-facet-empty little-spacer-top"
34   >
35     no_results
36   </div>
37   <MultipleSelectionHint
38     options={0}
39     values={0}
40   />
41 </FacetBox>
42 `;
43
44 exports[`should render sub-facets 1`] = `
45 <FacetBox
46   property="standards"
47 >
48   <FacetHeader
49     name="issues.facet.standards"
50     onClear={[Function]}
51     onClick={[Function]}
52     open={true}
53     values={
54       Array [
55         "SONAR SQL Injection",
56         "OWASP A3",
57         "SANS Risky Resource Management",
58         "CWE-42 - cwe-42 title",
59       ]
60     }
61   />
62   <FacetBox
63     className="is-inner"
64     property="sonarsourceSecurity"
65   >
66     <FacetHeader
67       name="issues.facet.sonarsourceSecurity"
68       onClick={[Function]}
69       open={true}
70       values={
71         Array [
72           "SQL Injection",
73         ]
74       }
75     />
76     <DeferredSpinner
77       loading={false}
78       timeout={100}
79     />
80     <FacetItemsList>
81       <FacetItem
82         active={true}
83         disabled={false}
84         halfWidth={false}
85         key="sql-injection"
86         loading={false}
87         name="SQL Injection"
88         onClick={[Function]}
89         stat="12"
90         tooltip="SQL Injection"
91         value="sql-injection"
92       />
93     </FacetItemsList>
94     <MultipleSelectionHint
95       options={1}
96       values={1}
97     />
98   </FacetBox>
99   <FacetBox
100     className="is-inner"
101     property="owaspTop10"
102   >
103     <FacetHeader
104       name="issues.facet.owaspTop10"
105       onClick={[Function]}
106       open={true}
107       values={
108         Array [
109           "A3",
110         ]
111       }
112     />
113     <DeferredSpinner
114       loading={false}
115       timeout={100}
116     />
117     <FacetItemsList>
118       <FacetItem
119         active={false}
120         disabled={false}
121         halfWidth={false}
122         key="a1"
123         loading={false}
124         name="A1 - a1 title"
125         onClick={[Function]}
126         stat="15"
127         tooltip="A1 - a1 title"
128         value="a1"
129       />
130       <FacetItem
131         active={true}
132         disabled={false}
133         halfWidth={false}
134         key="a3"
135         loading={false}
136         name="A3"
137         onClick={[Function]}
138         stat="5"
139         tooltip="A3"
140         value="a3"
141       />
142     </FacetItemsList>
143     <MultipleSelectionHint
144       options={2}
145       values={1}
146     />
147   </FacetBox>
148   <FacetBox
149     className="is-inner"
150     property="sansTop25"
151   >
152     <FacetHeader
153       name="issues.facet.sansTop25"
154       onClick={[Function]}
155       open={true}
156       values={
157         Array [
158           "Risky Resource Management",
159         ]
160       }
161     />
162     <DeferredSpinner
163       loading={false}
164       timeout={100}
165     />
166     <FacetItemsList>
167       <FacetItem
168         active={false}
169         disabled={false}
170         halfWidth={false}
171         key="foo"
172         loading={false}
173         name="foo"
174         onClick={[Function]}
175         stat="12"
176         tooltip="foo"
177         value="foo"
178       />
179       <FacetItem
180         active={true}
181         disabled={false}
182         halfWidth={false}
183         key="risky-resource"
184         loading={false}
185         name="Risky Resource Management"
186         onClick={[Function]}
187         stat="10"
188         tooltip="Risky Resource Management"
189         value="risky-resource"
190       />
191     </FacetItemsList>
192     <MultipleSelectionHint
193       options={2}
194       values={1}
195     />
196   </FacetBox>
197   <ListStyleFacet
198     className="is-inner"
199     facetHeader="issues.facet.cwe"
200     fetching={false}
201     getFacetItemText={[Function]}
202     getSearchResultKey={[Function]}
203     getSearchResultText={[Function]}
204     loadSearchResultCount={[Function]}
205     maxInitialItems={15}
206     maxItems={100}
207     minSearchLength={2}
208     onChange={[MockFunction]}
209     onSearch={[Function]}
210     onToggle={[MockFunction]}
211     open={true}
212     property="cwe"
213     query={Object {}}
214     renderFacetItem={[Function]}
215     renderSearchResult={[Function]}
216     searchPlaceholder="search.search_for_cwe"
217     stats={
218       Object {
219         "173": 3,
220         "42": 5,
221       }
222     }
223     values={
224       Array [
225         "42",
226       ]
227     }
228   />
229 </FacetBox>
230 `;