]> source.dussan.org Git - sonarqube.git/blob
2a9d628ad55db5d1f06b24d6c91927a79afe73d1
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should display the bound organizations dropdown with the remote repositories 1`] = `
4 <Fragment>
5   <withRouter(OrganizationInput)
6     autoImport={true}
7     onChange={[Function]}
8     organization="foo"
9     organizations={
10       Array [
11         Object {
12           "actions": Object {
13             "admin": true,
14           },
15           "alm": Object {
16             "key": "github",
17             "membersSync": false,
18             "personal": false,
19             "url": "https://github.com/foo",
20           },
21           "key": "foo",
22           "name": "Foo",
23           "subscription": "FREE",
24         },
25         Object {
26           "alm": Object {
27             "key": "github",
28             "membersSync": false,
29             "personal": false,
30             "url": "https://github.com/foo",
31           },
32           "key": "bar",
33           "name": "Bar",
34           "subscription": "FREE",
35         },
36       ]
37     }
38   />
39   <RemoteRepositories
40     almApplication={
41       Object {
42         "backgroundColor": "blue",
43         "iconPath": "icon/path",
44         "installationUrl": "https://alm.installation.url",
45         "key": "github",
46         "name": "GitHub",
47       }
48     }
49     onOrganizationUpgrade={[MockFunction]}
50     onProjectCreate={[MockFunction]}
51     organization={
52       Object {
53         "actions": Object {
54           "admin": true,
55         },
56         "alm": Object {
57           "key": "github",
58           "membersSync": false,
59           "personal": false,
60           "url": "https://github.com/foo",
61         },
62         "key": "foo",
63         "name": "Foo",
64         "subscription": "FREE",
65       }
66     }
67   />
68 </Fragment>
69 `;
70
71 exports[`should display the provider app install button 1`] = `
72 <Fragment>
73   <p
74     className="spacer-bottom"
75   >
76     onboarding.create_project.install_app_description.github
77   </p>
78   <IdentityProviderLink
79     backgroundColor="blue"
80     className="display-inline-block"
81     iconPath="icon/path"
82     name="GitHub"
83     onClick={[Function]}
84     small={true}
85     url="https://alm.installation.url"
86   >
87     onboarding.import_organization.choose_organization_button.github
88   </IdentityProviderLink>
89 </Fragment>
90 `;