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