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