]> source.dussan.org Git - sonarqube.git/blob
28b54f922c403839b2ce6ee9f61f148a358955be
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: default 1`] = `
4 <div>
5   <AzureProjectAccordion
6     key="azure-project-1"
7     loading={false}
8     onOpen={[MockFunction]}
9     project={
10       Object {
11         "key": "azure-project-1",
12         "name": "Azure Project",
13       }
14     }
15     repositories={Array []}
16     startsOpen={true}
17   />
18   <ListFooter
19     count={1}
20     loadMore={[Function]}
21     total={1}
22   />
23 </div>
24 `;
25
26 exports[`should render correctly: empty 1`] = `
27 <Alert
28   className="spacer-top"
29   variant="warning"
30 >
31   <FormattedMessage
32     defaultMessage="onboarding.create_project.azure.no_projects"
33     id="onboarding.create_project.azure.no_projects"
34     values={
35       Object {
36         "link": <Link
37           onlyActiveOnIndex={false}
38           style={Object {}}
39           to={
40             Object {
41               "pathname": "/projects/create",
42               "query": Object {
43                 "mode": "azure",
44                 "resetPat": 1,
45               },
46             }
47           }
48         >
49           onboarding.create_project.update_your_token
50         </Link>,
51       }
52     }
53   />
54 </Alert>
55 `;
56
57 exports[`should render search results correctly: default 1`] = `
58 <div>
59   <AzureProjectAccordion
60     key="p2 - result"
61     loading={false}
62     onOpen={[MockFunction]}
63     project={
64       Object {
65         "key": "p2",
66         "name": "p2",
67       }
68     }
69     repositories={
70       Array [
71         Object {
72           "name": "Azure repo 1",
73           "projectName": "p2",
74         },
75       ]
76     }
77     startsOpen={true}
78   />
79   <ListFooter
80     count={1}
81     loadMore={[Function]}
82     total={1}
83   />
84 </div>
85 `;
86
87 exports[`should render search results correctly: empty 1`] = `
88 <Alert
89   className="spacer-top"
90   variant="warning"
91 >
92   onboarding.create_project.azure.no_results
93 </Alert>
94 `;