]> source.dussan.org Git - sonarqube.git/blob
74f6d72d757a5aa75480446d588a79037c16382c
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <section
5   className="oauth-providers"
6 >
7   <ul>
8     <OAuthProvider
9       format={[Function]}
10       identityProvider={
11         Object {
12           "backgroundColor": "#000",
13           "iconPath": "/some/path",
14           "key": "foo",
15           "name": "Foo",
16         }
17       }
18       key="foo"
19       returnTo=""
20     />
21     <OAuthProvider
22       format={[Function]}
23       identityProvider={
24         Object {
25           "backgroundColor": "#00F",
26           "helpMessage": "Help message!",
27           "iconPath": "/icon/path",
28           "key": "bar",
29           "name": "Bar",
30         }
31       }
32       key="bar"
33       returnTo=""
34     />
35   </ul>
36 </section>
37 `;
38
39 exports[`should render correctly 2`] = `
40 <li>
41   <IdentityProviderLink
42     backgroundColor="#000"
43     iconPath="/some/path"
44     name="Foo"
45     url="/sessions/init/foo?return_to="
46   >
47     <span>
48       login.login_with_x.Foo
49     </span>
50   </IdentityProviderLink>
51 </li>
52 `;
53
54 exports[`should render correctly 3`] = `
55 <li>
56   <IdentityProviderLink
57     backgroundColor="#00F"
58     iconPath="/icon/path"
59     name="Bar"
60     url="/sessions/init/bar?return_to="
61   >
62     <span>
63       login.login_with_x.Bar
64     </span>
65   </IdentityProviderLink>
66   <HelpTooltip
67     className="oauth-providers-help"
68     overlay="Help message!"
69   />
70 </li>
71 `;
72
73 exports[`should use the custom label formatter 1`] = `
74 <li>
75   <IdentityProviderLink
76     backgroundColor="#000"
77     iconPath="/some/path"
78     name="Foo"
79     url="/sessions/init/foo?return_to="
80   >
81     <span>
82       custom_format.Foo
83     </span>
84   </IdentityProviderLink>
85 </li>
86 `;