]> source.dussan.org Git - sonarqube.git/blob
87539e11b6b33cf04d5a104244f2264c7715d137
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: default 1`] = `
4 <div
5   className="big-spacer-top"
6 >
7   <DeferredSpinner
8     loading={false}
9   >
10     <BitbucketProjectAccordion
11       disableRepositories={false}
12       key="project"
13       onSelectRepository={[MockFunction]}
14       open={true}
15       project={
16         Object {
17           "id": 1,
18           "key": "project",
19           "name": "Project",
20         }
21       }
22       repositories={
23         Array [
24           Object {
25             "id": 1,
26             "name": "Repo",
27             "projectKey": "project",
28             "slug": "project__repo",
29           },
30         ]
31       }
32       showingAllRepositories={true}
33     />
34   </DeferredSpinner>
35 </div>
36 `;
37
38 exports[`should render correctly: no results 1`] = `
39 <Alert
40   className="big-spacer-top"
41   variant="warning"
42 >
43   onboarding.create_project.no_bbs_repos.filter
44 </Alert>
45 `;
46
47 exports[`should render correctly: searching 1`] = `
48 <div
49   className="big-spacer-top"
50 >
51   <DeferredSpinner
52     loading={true}
53   />
54 </div>
55 `;
56
57 exports[`should render correctly: unknown project in search results 1`] = `
58 <div
59   className="big-spacer-top"
60 >
61   <DeferredSpinner
62     loading={false}
63   >
64     <BitbucketProjectAccordion
65       disableRepositories={false}
66       onSelectRepository={[MockFunction]}
67       open={true}
68       repositories={
69         Array [
70           Object {
71             "id": 1,
72             "name": "Repo",
73             "projectKey": "unknown",
74             "slug": "project__repo",
75           },
76         ]
77       }
78       showingAllRepositories={true}
79     />
80   </DeferredSpinner>
81 </div>
82 `;