]> source.dussan.org Git - sonarqube.git/blob
04895e1a18a1649b83373811f368f27045c9350b
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render 1`] = `
4 <div
5   className="project-activity-event-inner"
6 >
7   <div
8     className="project-activity-event-inner-main"
9   >
10     <ProjectEventIcon
11       className="project-activity-event-icon little-spacer-right DEFINITION_CHANGE"
12     />
13     <div
14       className="project-activity-event-inner-text flex-1"
15     >
16       <span
17         className="note little-spacer-right"
18       >
19         event.category.DEFINITION_CHANGE
20       </span>
21     </div>
22     <ResetButtonLink
23       className="project-activity-event-inner-more-link"
24       onClick={[Function]}
25       stopPropagation={true}
26     >
27       more
28       <DropdownIcon
29         className="little-spacer-left"
30         turned={false}
31       />
32     </ResetButtonLink>
33   </div>
34 </div>
35 `;
36
37 exports[`should render 2`] = `
38 <div
39   className="project-activity-event-inner"
40 >
41   <div
42     className="project-activity-event-inner-main"
43   >
44     <ProjectEventIcon
45       className="project-activity-event-icon little-spacer-right DEFINITION_CHANGE"
46     />
47     <div
48       className="project-activity-event-inner-text flex-1"
49     >
50       <span
51         className="note little-spacer-right"
52       >
53         event.category.DEFINITION_CHANGE
54       </span>
55     </div>
56     <ResetButtonLink
57       className="project-activity-event-inner-more-link"
58       onClick={[Function]}
59       stopPropagation={true}
60     >
61       hide
62       <DropdownIcon
63         className="little-spacer-left"
64         turned={true}
65       />
66     </ResetButtonLink>
67   </div>
68   <ul
69     className="project-activity-event-inner-more-content"
70   >
71     <li
72       className="display-flex-center little-spacer-top"
73       key="foo"
74     >
75       <div
76         className="text-ellipsis"
77       >
78         <FormattedMessage
79           defaultMessage="event.definition_change.added"
80           id="event.definition_change.added"
81           values={
82             Object {
83               "branch": <span
84                 className="nowrap"
85                 title="master"
86               >
87                 <BranchIcon
88                   className="little-spacer-left text-text-top"
89                 />
90                 master
91               </span>,
92               "project": <Link
93                 onClick={[Function]}
94                 onlyActiveOnIndex={false}
95                 style={Object {}}
96                 title="Foo"
97                 to={
98                   Object {
99                     "pathname": "/dashboard",
100                     "query": Object {
101                       "branch": "master",
102                       "id": "foo",
103                     },
104                   }
105                 }
106               >
107                 Foo
108               </Link>,
109             }
110           }
111         />
112       </div>
113     </li>
114     <li
115       className="display-flex-center little-spacer-top"
116       key="bar"
117     >
118       <div
119         className="text-ellipsis"
120       >
121         <FormattedMessage
122           defaultMessage="event.definition_change.removed"
123           id="event.definition_change.removed"
124           values={
125             Object {
126               "branch": <span
127                 className="nowrap"
128                 title="master"
129               >
130                 <BranchIcon
131                   className="little-spacer-left text-text-top"
132                 />
133                 master
134               </span>,
135               "project": <Link
136                 onClick={[Function]}
137                 onlyActiveOnIndex={false}
138                 style={Object {}}
139                 title="Bar"
140                 to={
141                   Object {
142                     "pathname": "/dashboard",
143                     "query": Object {
144                       "branch": "master",
145                       "id": "bar",
146                     },
147                   }
148                 }
149               >
150                 Bar
151               </Link>,
152             }
153           }
154         />
155       </div>
156     </li>
157   </ul>
158 </div>
159 `;
160
161 exports[`should render for a branch 1`] = `
162 <div
163   className="project-activity-event-inner"
164 >
165   <div
166     className="project-activity-event-inner-main"
167   >
168     <ProjectEventIcon
169       className="project-activity-event-icon little-spacer-right DEFINITION_CHANGE"
170     />
171     <div
172       className="project-activity-event-inner-text flex-1"
173     >
174       <span
175         className="note little-spacer-right"
176       >
177         event.category.DEFINITION_CHANGE
178       </span>
179     </div>
180     <ResetButtonLink
181       className="project-activity-event-inner-more-link"
182       onClick={[Function]}
183       stopPropagation={true}
184     >
185       hide
186       <DropdownIcon
187         className="little-spacer-left"
188         turned={true}
189       />
190     </ResetButtonLink>
191   </div>
192   <ul
193     className="project-activity-event-inner-more-content"
194   >
195     <li
196       className="display-flex-center little-spacer-top"
197       key="foo"
198     >
199       <div
200         className="text-ellipsis"
201       >
202         <FormattedMessage
203           defaultMessage="event.definition_change.branch_added"
204           id="event.definition_change.branch_added"
205           values={
206             Object {
207               "branch": <span
208                 className="nowrap"
209                 title="feature-x"
210               >
211                 <BranchIcon
212                   className="little-spacer-left text-text-top"
213                 />
214                 feature-x
215               </span>,
216               "project": <Link
217                 onClick={[Function]}
218                 onlyActiveOnIndex={false}
219                 style={Object {}}
220                 title="Foo"
221                 to={
222                   Object {
223                     "pathname": "/dashboard",
224                     "query": Object {
225                       "branch": "feature-x",
226                       "id": "foo",
227                     },
228                   }
229                 }
230               >
231                 Foo
232               </Link>,
233             }
234           }
235         />
236       </div>
237     </li>
238     <li
239       className="display-flex-center little-spacer-top"
240       key="bar"
241     >
242       <FormattedMessage
243         defaultMessage="event.definition_change.branch_replaced"
244         id="event.definition_change.branch_replaced"
245         values={
246           Object {
247             "newBranch": <span
248               className="nowrap"
249               title="feature-y"
250             >
251               <BranchIcon
252                 className="little-spacer-left text-text-top"
253               />
254               feature-y
255             </span>,
256             "oldBranch": <span
257               className="nowrap"
258               title="master"
259             >
260               <BranchIcon
261                 className="little-spacer-left text-text-top"
262               />
263               master
264             </span>,
265             "project": <Link
266               onClick={[Function]}
267               onlyActiveOnIndex={false}
268               style={Object {}}
269               title="Bar"
270               to={
271                 Object {
272                   "pathname": "/dashboard",
273                   "query": Object {
274                     "branch": "feature-y",
275                     "id": "bar",
276                   },
277                 }
278               }
279             >
280               Bar
281             </Link>,
282           }
283         }
284       />
285     </li>
286   </ul>
287 </div>
288 `;