]> source.dussan.org Git - sonarqube.git/blob
d9e0818ec211d96cd9f183c95dea47c5827259a6
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: with URL 1`] = `
4 <div
5   className="bordered"
6 >
7   <AlmTab
8     alm="gitlab"
9     createConfiguration={[Function]}
10     defaultBinding={
11       Object {
12         "key": "",
13         "personalAccessToken": "",
14         "url": "",
15       }
16     }
17     definitionStatus={Object {}}
18     definitions={
19       Array [
20         Object {
21           "key": "foo",
22           "personalAccessToken": "foobar",
23           "url": "https://gitlab.com/api/v4",
24         },
25       ]
26     }
27     form={[Function]}
28     help={
29       <FormattedMessage
30         defaultMessage="settings.almintegration.gitlab.info"
31         id="settings.almintegration.gitlab.info"
32         values={
33           Object {
34             "link": <Link
35               onlyActiveOnIndex={false}
36               style={Object {}}
37               target="_blank"
38               to="/documentation/analysis/gitlab-integration/"
39             >
40               learn_more
41             </Link>,
42           }
43         }
44       />
45     }
46     loadingAlmDefinitions={false}
47     loadingProjectCount={false}
48     multipleAlmEnabled={true}
49     onCheck={[MockFunction]}
50     onDelete={[MockFunction]}
51     onUpdateDefinitions={[MockFunction]}
52     updateConfiguration={[Function]}
53   />
54   <div
55     className="huge-spacer-top huge-spacer-bottom bordered-top"
56   />
57   <div
58     className="big-padded"
59   >
60     <Connect(SubCategoryDefinitionsList)
61       category="almintegration"
62       subCategory="gitlab"
63     />
64   </div>
65 </div>
66 `;
67
68 exports[`should render correctly: with branch support 1`] = `
69 <div
70   className="bordered"
71 >
72   <AlmTab
73     alm="gitlab"
74     createConfiguration={[Function]}
75     defaultBinding={
76       Object {
77         "key": "",
78         "personalAccessToken": "",
79         "url": "",
80       }
81     }
82     definitionStatus={Object {}}
83     definitions={
84       Array [
85         Object {
86           "key": "foo",
87           "personalAccessToken": "foobar",
88         },
89       ]
90     }
91     form={[Function]}
92     help={
93       <FormattedMessage
94         defaultMessage="settings.almintegration.gitlab.info"
95         id="settings.almintegration.gitlab.info"
96         values={
97           Object {
98             "link": <Link
99               onlyActiveOnIndex={false}
100               style={Object {}}
101               target="_blank"
102               to="/documentation/analysis/gitlab-integration/"
103             >
104               learn_more
105             </Link>,
106           }
107         }
108       />
109     }
110     loadingAlmDefinitions={false}
111     loadingProjectCount={false}
112     multipleAlmEnabled={true}
113     onCheck={[MockFunction]}
114     onDelete={[MockFunction]}
115     onUpdateDefinitions={[MockFunction]}
116     updateConfiguration={[Function]}
117   />
118   <div
119     className="huge-spacer-top huge-spacer-bottom bordered-top"
120   />
121   <div
122     className="big-padded"
123   >
124     <Connect(SubCategoryDefinitionsList)
125       category="almintegration"
126       subCategory="gitlab"
127     />
128   </div>
129 </div>
130 `;
131
132 exports[`should render correctly: with no definitions 1`] = `
133 <div
134   className="bordered"
135 >
136   <AlmTab
137     alm="gitlab"
138     createConfiguration={[Function]}
139     defaultBinding={
140       Object {
141         "key": "",
142         "personalAccessToken": "",
143         "url": "",
144       }
145     }
146     definitionStatus={Object {}}
147     definitions={Array []}
148     form={[Function]}
149     help={
150       <FormattedMessage
151         defaultMessage="settings.almintegration.gitlab.info"
152         id="settings.almintegration.gitlab.info"
153         values={
154           Object {
155             "link": <Link
156               onlyActiveOnIndex={false}
157               style={Object {}}
158               target="_blank"
159               to="/documentation/analysis/gitlab-integration/"
160             >
161               learn_more
162             </Link>,
163           }
164         }
165       />
166     }
167     loadingAlmDefinitions={false}
168     loadingProjectCount={false}
169     multipleAlmEnabled={true}
170     onCheck={[MockFunction]}
171     onDelete={[MockFunction]}
172     onUpdateDefinitions={[MockFunction]}
173     updateConfiguration={[Function]}
174   />
175   <div
176     className="huge-spacer-top huge-spacer-bottom bordered-top"
177   />
178   <div
179     className="big-padded"
180   >
181     <Connect(SubCategoryDefinitionsList)
182       category="almintegration"
183       subCategory="gitlab"
184     />
185   </div>
186 </div>
187 `;
188
189 exports[`should render correctly: without branch support 1`] = `
190 <div
191   className="bordered"
192 >
193   <div
194     className="big-padded"
195   >
196     <Connect(SubCategoryDefinitionsList)
197       category="almintegration"
198       subCategory="gitlab"
199     />
200   </div>
201 </div>
202 `;