]> source.dussan.org Git - sonarqube.git/blob
4936ee19ea8bffe7d32b40b7751e29141b12b497
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`#Feature should render correctly 1`] = `
4 <div
5   className="feature"
6 >
7   <ul
8     className="categories spacer-bottom"
9   >
10     <li
11       key="BitBucket"
12       style={
13         Object {
14           "backgroundColor": "#0000ff",
15         }
16       }
17     >
18       BitBucket
19     </li>
20   </ul>
21   <span>
22     BitBucket branch decoration
23   </span>
24   <a
25     className="learn-more"
26     href="http://example.com"
27     rel="noopener noreferrer nofollow"
28     target="_blank"
29   >
30     learn_more
31   </a>
32 </div>
33 `;
34
35 exports[`#Feature should render correctly 2`] = `
36 <div
37   className="feature"
38 >
39   <ul
40     className="categories spacer-bottom"
41   >
42     <li
43       key="Java"
44       style={
45         Object {
46           "backgroundColor": "#ff0000",
47         }
48       }
49     >
50       Java
51     </li>
52     <li
53       key="Rules"
54       style={
55         Object {
56           "backgroundColor": "#00ff00",
57         }
58       }
59     >
60       Rules
61     </li>
62   </ul>
63   <span>
64     10 new Java rules
65   </span>
66 </div>
67 `;
68
69 exports[`#Notification should render correctly 1`] = `
70 <div
71   className="notifications-sidebar-slice"
72 >
73   <h4>
74     <DateFormatter
75       date="2018-04-05"
76       long={false}
77     />
78   </h4>
79   <Feature
80     feature={
81       Object {
82         "categories": Array [
83           Object {
84             "color": "#0000ff",
85             "name": "BitBucket",
86           },
87         ],
88         "description": "BitBucket branch decoration",
89         "readMore": "http://example.com",
90       }
91     }
92     key="0"
93   />
94 </div>
95 `;
96
97 exports[`#Notification should render correctly 2`] = `
98 <div
99   className="notifications-sidebar-slice unread"
100 >
101   <h4>
102     <DateFormatter
103       date="2018-04-05"
104       long={false}
105     />
106   </h4>
107   <Feature
108     feature={
109       Object {
110         "categories": Array [
111           Object {
112             "color": "#0000ff",
113             "name": "BitBucket",
114           },
115         ],
116         "description": "BitBucket branch decoration",
117         "readMore": "http://example.com",
118       }
119     }
120     key="0"
121   />
122 </div>
123 `;
124
125 exports[`#NotificationSidebar should render correctly if there are new features 1`] = `
126 <Modal
127   contentLabel="embed_docs.whats_new"
128   onRequestClose={[MockFunction]}
129 >
130   <div
131     className="notifications-sidebar"
132   >
133     <div
134       className="notifications-sidebar-top"
135     >
136       <h3>
137         embed_docs.whats_new
138       </h3>
139       <ClearButton
140         className="button-tiny"
141         iconProps={
142           Object {
143             "size": 12,
144             "thin": true,
145           }
146         }
147         onClick={[MockFunction]}
148       />
149     </div>
150     <div
151       className="notifications-sidebar-content"
152     >
153       <div
154         className="text-center"
155       >
156         <DeferredSpinner
157           className="big-spacer-top"
158           timeout={200}
159         />
160       </div>
161     </div>
162   </div>
163 </Modal>
164 `;
165
166 exports[`#NotificationSidebar should render correctly if there are new features 2`] = `
167 <Modal
168   contentLabel="embed_docs.whats_new"
169   onRequestClose={[MockFunction]}
170 >
171   <div
172     className="notifications-sidebar"
173   >
174     <div
175       className="notifications-sidebar-top"
176     >
177       <h3>
178         embed_docs.whats_new
179       </h3>
180       <ClearButton
181         className="button-tiny"
182         iconProps={
183           Object {
184             "size": 12,
185             "thin": true,
186           }
187         }
188         onClick={[MockFunction]}
189       />
190     </div>
191     <div
192       className="notifications-sidebar-content"
193     >
194       <Notification
195         key="2018-04-06"
196         notification={
197           Object {
198             "features": Array [
199               Object {
200                 "categories": Array [
201                   Object {
202                     "color": "#ff0000",
203                     "name": "Java",
204                   },
205                   Object {
206                     "color": "#00ff00",
207                     "name": "Rules",
208                   },
209                 ],
210                 "description": "10 new Java rules",
211               },
212               Object {
213                 "categories": Array [
214                   Object {
215                     "color": "#0000ff",
216                     "name": "BitBucket",
217                   },
218                 ],
219                 "description": "BitBucket branch decoration",
220                 "readMore": "http://example.com",
221               },
222             ],
223             "notification": "10 Java rules, Github checks, Security Hotspots, BitBucket branch decoration",
224             "publicationDate": "2018-04-06",
225           }
226         }
227         unread={true}
228       />
229       <Notification
230         key="2018-04-05"
231         notification={
232           Object {
233             "features": Array [
234               Object {
235                 "categories": Array [
236                   Object {
237                     "color": "#0000ff",
238                     "name": "BitBucket",
239                   },
240                 ],
241                 "description": "BitBucket branch decoration",
242                 "readMore": "http://example.com",
243               },
244             ],
245             "notification": "Some other notification",
246             "publicationDate": "2018-04-05",
247           }
248         }
249         unread={true}
250       />
251     </div>
252     <div
253       className="notifications-sidebar-footer"
254     >
255       <div
256         className="spacer-top note text-center"
257       >
258         <a
259           className="spacer-left"
260           href="#"
261           onClick={[MockFunction]}
262         >
263           show_more
264         </a>
265       </div>
266     </div>
267   </div>
268 </Modal>
269 `;