]> source.dussan.org Git - sonarqube.git/blob
3b7305310a4e776cd19f439f7c8e5877d7ac2618
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <tr>
5   <td
6     className="thin text-middle"
7   >
8     <div
9       className="sw-flex sw-items-center"
10     >
11       <withAppStateContext(Avatar)
12         className="sw-shrink-0 sw-mr-4"
13         name="One"
14         size={36}
15       />
16       <UserListItemIdentity
17         user={
18           {
19             "active": true,
20             "lastConnectionDate": "2019-01-18T15:06:33+0100",
21             "local": false,
22             "login": "obi",
23             "managed": false,
24             "name": "One",
25             "scmAccounts": [],
26             "sonarLintLastConnectionDate": "2019-01-16T15:06:33+0100",
27           }
28         }
29       />
30     </div>
31   </td>
32   <td
33     className="thin text-middle"
34   >
35     <UserScmAccounts
36       scmAccounts={[]}
37     />
38   </td>
39   <td
40     className="thin nowrap text-middle"
41   >
42     <DateFromNow
43       date="2019-01-18T15:06:33+0100"
44       hourPrecision={true}
45     />
46   </td>
47   <td
48     className="thin nowrap text-middle"
49   >
50     <DateFromNow
51       date="2019-01-16T15:06:33+0100"
52       hourPrecision={true}
53     />
54   </td>
55   <td
56     className="thin nowrap text-middle"
57   >
58     <UserGroups
59       groups={[]}
60       onUpdateUsers={[MockFunction]}
61       user={
62         {
63           "active": true,
64           "lastConnectionDate": "2019-01-18T15:06:33+0100",
65           "local": false,
66           "login": "obi",
67           "managed": false,
68           "name": "One",
69           "scmAccounts": [],
70           "sonarLintLastConnectionDate": "2019-01-16T15:06:33+0100",
71         }
72       }
73     />
74   </td>
75   <td
76     className="thin nowrap text-middle"
77   >
78     <ButtonIcon
79       aria-label="users.update_tokens_for_x.One"
80       className="js-user-tokens spacer-left button-small"
81       onClick={[Function]}
82       tooltip="users.update_tokens"
83     >
84       <BulletListIcon />
85     </ButtonIcon>
86   </td>
87   <td
88     className="thin nowrap text-right text-middle"
89   >
90     <UserActions
91       isCurrentUser={false}
92       onUpdateUsers={[MockFunction]}
93       user={
94         {
95           "active": true,
96           "lastConnectionDate": "2019-01-18T15:06:33+0100",
97           "local": false,
98           "login": "obi",
99           "managed": false,
100           "name": "One",
101           "scmAccounts": [],
102           "sonarLintLastConnectionDate": "2019-01-16T15:06:33+0100",
103         }
104       }
105     />
106   </td>
107 </tr>
108 `;
109
110 exports[`should render correctly without last connection date 1`] = `
111 <tr>
112   <td
113     className="thin text-middle"
114   >
115     <div
116       className="sw-flex sw-items-center"
117     >
118       <withAppStateContext(Avatar)
119         className="sw-shrink-0 sw-mr-4"
120         name="One"
121         size={36}
122       />
123       <UserListItemIdentity
124         user={
125           {
126             "active": true,
127             "lastConnectionDate": "2019-01-18T15:06:33+0100",
128             "local": false,
129             "login": "obi",
130             "managed": false,
131             "name": "One",
132             "scmAccounts": [],
133             "sonarLintLastConnectionDate": "2019-01-16T15:06:33+0100",
134           }
135         }
136       />
137     </div>
138   </td>
139   <td
140     className="thin text-middle"
141   >
142     <UserScmAccounts
143       scmAccounts={[]}
144     />
145   </td>
146   <td
147     className="thin nowrap text-middle"
148   >
149     <DateFromNow
150       date="2019-01-18T15:06:33+0100"
151       hourPrecision={true}
152     />
153   </td>
154   <td
155     className="thin nowrap text-middle"
156   >
157     <DateFromNow
158       date="2019-01-16T15:06:33+0100"
159       hourPrecision={true}
160     />
161   </td>
162   <td
163     className="thin nowrap text-middle"
164   >
165     <UserGroups
166       groups={[]}
167       onUpdateUsers={[MockFunction]}
168       user={
169         {
170           "active": true,
171           "lastConnectionDate": "2019-01-18T15:06:33+0100",
172           "local": false,
173           "login": "obi",
174           "managed": false,
175           "name": "One",
176           "scmAccounts": [],
177           "sonarLintLastConnectionDate": "2019-01-16T15:06:33+0100",
178         }
179       }
180     />
181   </td>
182   <td
183     className="thin nowrap text-middle"
184   >
185     <ButtonIcon
186       aria-label="users.update_tokens_for_x.One"
187       className="js-user-tokens spacer-left button-small"
188       onClick={[Function]}
189       tooltip="users.update_tokens"
190     >
191       <BulletListIcon />
192     </ButtonIcon>
193   </td>
194   <td
195     className="thin nowrap text-right text-middle"
196   >
197     <UserActions
198       isCurrentUser={false}
199       onUpdateUsers={[MockFunction]}
200       user={
201         {
202           "active": true,
203           "lastConnectionDate": "2019-01-18T15:06:33+0100",
204           "local": false,
205           "login": "obi",
206           "managed": false,
207           "name": "One",
208           "scmAccounts": [],
209           "sonarLintLastConnectionDate": "2019-01-16T15:06:33+0100",
210         }
211       }
212     />
213   </td>
214 </tr>
215 `;