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