]> source.dussan.org Git - sonarqube.git/blob
a832b1e93c15607ad0f0a548ac22bcacae9b9dc9
[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"
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"
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-04T22:00:00.000Z}
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-04T22:00:00.000Z}
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   onRequestClose={[MockFunction]}
128 >
129   <div
130     className="notifications-sidebar"
131   >
132     <div
133       className="notifications-sidebar-top"
134     >
135       <h3>
136         embed_docs.whats_new
137       </h3>
138       <a
139         className="close"
140         href="#"
141         onClick={[MockFunction]}
142       >
143         <ClearIcon />
144       </a>
145     </div>
146     <div
147       className="notifications-sidebar-content"
148     >
149       <div
150         className="text-center"
151       >
152         <DeferredSpinner
153           className="big-spacer-top"
154           timeout={200}
155         />
156       </div>
157     </div>
158   </div>
159 </Modal>
160 `;
161
162 exports[`#NotificationSidebar should render correctly if there are new features 2`] = `
163 <Modal
164   onRequestClose={[MockFunction]}
165 >
166   <div
167     className="notifications-sidebar"
168   >
169     <div
170       className="notifications-sidebar-top"
171     >
172       <h3>
173         embed_docs.whats_new
174       </h3>
175       <a
176         className="close"
177         href="#"
178         onClick={[MockFunction]}
179       >
180         <ClearIcon />
181       </a>
182     </div>
183     <div
184       className="notifications-sidebar-content"
185     >
186       <Notification
187         key="2018-04-06"
188         notification={
189           Object {
190             "features": Array [
191               Object {
192                 "categories": Array [
193                   Object {
194                     "color": "#ff0000",
195                     "name": "Java",
196                   },
197                   Object {
198                     "color": "#00ff00",
199                     "name": "Rules",
200                   },
201                 ],
202                 "description": "10 new Java rules",
203               },
204               Object {
205                 "categories": Array [
206                   Object {
207                     "color": "#0000ff",
208                     "name": "BitBucket",
209                   },
210                 ],
211                 "description": "BitBucket branch decoration",
212                 "readMore": "http://example.com",
213               },
214             ],
215             "notification": "10 Java rules, Github checks, Security Hotspots, BitBucket branch decoration",
216             "publicationDate": "2018-04-06",
217           }
218         }
219         unread={true}
220       />
221       <Notification
222         key="2018-04-05"
223         notification={
224           Object {
225             "features": Array [
226               Object {
227                 "categories": Array [
228                   Object {
229                     "color": "#0000ff",
230                     "name": "BitBucket",
231                   },
232                 ],
233                 "description": "BitBucket branch decoration",
234                 "readMore": "http://example.com",
235               },
236             ],
237             "notification": "Some other notification",
238             "publicationDate": "2018-04-05",
239           }
240         }
241         unread={true}
242       />
243     </div>
244     <div
245       className="notifications-sidebar-footer"
246     >
247       <div
248         className="spacer-top note text-center"
249       >
250         <a
251           className="spacer-left"
252           href="#"
253           onClick={[MockFunction]}
254         >
255           show_more
256         </a>
257       </div>
258     </div>
259   </div>
260 </Modal>
261 `;