]> source.dussan.org Git - sonarqube.git/blob
05a4397a565b955b49662c7e4d906a354b633bff
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <div>
5   <h2
6     className="spacer-bottom"
7   >
8     my_profile.delete_account
9   </h2>
10   <DeferredSpinner
11     loading={true}
12     timeout={100}
13   />
14 </div>
15 `;
16
17 exports[`should render correctly 2`] = `
18 <div>
19   <h2
20     className="spacer-bottom"
21   >
22     my_profile.delete_account
23   </h2>
24   <DeferredSpinner
25     loading={false}
26     timeout={100}
27   />
28   <UserDeleteAccountContent
29     className="list-styled no-padding big-spacer-top big-spacer-bottom"
30     organizationsSafeToDelete={
31       Array [
32         Object {
33           "key": "luke-leia",
34           "name": "Luke and Leia",
35         },
36         Object {
37           "key": "luke",
38           "name": "Luke Skywalker",
39         },
40       ]
41     }
42     organizationsToTransferOrDelete={Array []}
43   />
44   <Button
45     className="button-red"
46     disabled={false}
47     onClick={[Function]}
48     type="button"
49   >
50     delete
51   </Button>
52 </div>
53 `;
54
55 exports[`should render correctly 3`] = `
56 <div>
57   <h2
58     className="spacer-bottom"
59   >
60     my_profile.delete_account
61   </h2>
62   <DeferredSpinner
63     loading={false}
64     timeout={100}
65   />
66   <UserDeleteAccountContent
67     className="list-styled no-padding big-spacer-top big-spacer-bottom"
68     organizationsSafeToDelete={
69       Array [
70         Object {
71           "key": "luke-leia",
72           "name": "Luke and Leia",
73         },
74         Object {
75           "key": "luke",
76           "name": "Luke Skywalker",
77         },
78       ]
79     }
80     organizationsToTransferOrDelete={Array []}
81   />
82   <Button
83     className="button-red"
84     disabled={false}
85     onClick={[Function]}
86     type="button"
87   >
88     delete
89   </Button>
90   <Connect(withRouter(UserDeleteAccountModal))
91     label="my_profile.delete_account"
92     organizationsSafeToDelete={
93       Array [
94         Object {
95           "key": "luke-leia",
96           "name": "Luke and Leia",
97         },
98         Object {
99           "key": "luke",
100           "name": "Luke Skywalker",
101         },
102       ]
103     }
104     organizationsToTransferOrDelete={Array []}
105     toggleModal={[Function]}
106     user={
107       Object {
108         "externalIdentity": "luke",
109         "groups": Array [],
110         "isLoggedIn": true,
111         "login": "luke",
112         "name": "Skywalker",
113         "scmAccounts": Array [],
114       }
115     }
116   />
117 </div>
118 `;