]> source.dussan.org Git - sonarqube.git/blob
9f54f8afd366b9d5ceb56971f7e4ec19f17ab723
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <tr>
5   <td
6     className="hide-overflow nowrap"
7     title="foo"
8   >
9     foo
10   </td>
11   <td
12     className="hide-overflow thin"
13     title="users.tokens.USER_TOKEN"
14   >
15     users.tokens.USER_TOKEN.short
16   </td>
17   <td
18     className="hide-overflow"
19   />
20   <td
21     className="thin nowrap"
22   >
23     <DateFromNow
24       date="2019-01-18T15:06:33+0100"
25       hourPrecision={true}
26     />
27   </td>
28   <td
29     className="thin nowrap text-right"
30   >
31     <DateFormatter
32       date="2019-01-15T15:06:33+0100"
33       long={true}
34     />
35   </td>
36   <td
37     className="thin nowrap text-right"
38   >
39     –
40   </td>
41   <td
42     className="thin nowrap text-right"
43   >
44     <Button
45       className="button-red input-small"
46       disabled={false}
47       onClick={[Function]}
48     >
49       <DeferredSpinner
50         className="little-spacer-right"
51         loading={false}
52       />
53       users.tokens.revoke
54     </Button>
55   </td>
56 </tr>
57 `;
58
59 exports[`should render correctly 2`] = `
60 <tr>
61   <td
62     className="hide-overflow nowrap"
63     title="foo"
64   >
65     foo
66   </td>
67   <td
68     className="hide-overflow thin"
69     title="users.tokens.USER_TOKEN"
70   >
71     users.tokens.USER_TOKEN.short
72   </td>
73   <td
74     className="hide-overflow"
75   />
76   <td
77     className="thin nowrap"
78   >
79     <DateFromNow
80       date="2019-01-18T15:06:33+0100"
81       hourPrecision={true}
82     />
83   </td>
84   <td
85     className="thin nowrap text-right"
86   >
87     <DateFormatter
88       date="2019-01-15T15:06:33+0100"
89       long={true}
90     />
91   </td>
92   <td
93     className="thin nowrap text-right"
94   >
95     –
96   </td>
97   <td
98     className="thin nowrap text-right"
99   >
100     <ConfirmButton
101       confirmButtonText="users.tokens.revoke_token"
102       isDestructive={true}
103       modalBody={
104         <FormattedMessage
105           defaultMessage="users.tokens.sure_X"
106           id="users.tokens.sure_X"
107           values={
108             {
109               "token": <strong>
110                 foo
111               </strong>,
112             }
113           }
114         />
115       }
116       modalHeader="users.tokens.revoke_token"
117       onConfirm={[Function]}
118     >
119       <Component />
120     </ConfirmButton>
121   </td>
122 </tr>
123 `;
124
125 exports[`should revoke the token using inline confirmation 1`] = `
126 <Button
127   className="button-red input-small"
128   disabled={false}
129   onClick={[Function]}
130 >
131   <DeferredSpinner
132     className="little-spacer-right"
133     loading={false}
134   />
135   users.tokens.revoke
136 </Button>
137 `;
138
139 exports[`should revoke the token using inline confirmation 2`] = `
140 <Button
141   className="button-red input-small"
142   disabled={false}
143   onClick={[Function]}
144 >
145   <DeferredSpinner
146     className="little-spacer-right"
147     loading={false}
148   />
149   users.tokens.sure
150 </Button>
151 `;