]> source.dussan.org Git - sonarqube.git/blob
9a956e3303cec7b161d2a8161df95d61463d6edd
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <span
5   className="big-spacer-left flex-0 branch-like-navigation-toggler-container"
6 >
7   <Memo(CurrentBranchLike)
8     branchesEnabled={false}
9     component={
10       Object {
11         "breadcrumbs": Array [],
12         "key": "my-project",
13         "name": "MyProject",
14         "qualifier": "TRK",
15         "qualityGate": Object {
16           "isDefault": true,
17           "key": "30",
18           "name": "Sonar way",
19         },
20         "qualityProfiles": Array [
21           Object {
22             "deleted": false,
23             "key": "my-qp",
24             "language": "ts",
25             "name": "Sonar way",
26           },
27         ],
28         "tags": Array [],
29       }
30     }
31     currentBranchLike={
32       Object {
33         "analysisDate": "2018-01-01",
34         "excludedFromPurge": true,
35         "isMain": false,
36         "name": "branch-11",
37       }
38     }
39     hasManyBranches={true}
40   />
41 </span>
42 `;
43
44 exports[`should render the menu trigger if branches are enabled 1`] = `
45 <span
46   className="big-spacer-left flex-0 branch-like-navigation-toggler-container dropdown"
47 >
48   <Toggler
49     onRequestClose={[Function]}
50     open={false}
51     overlay={
52       <withRouter(Menu)
53         branchLikes={
54           Array [
55             Object {
56               "analysisDate": "2018-01-01",
57               "excludedFromPurge": true,
58               "isMain": false,
59               "name": "branch-11",
60             },
61             Object {
62               "analysisDate": "2018-01-01",
63               "excludedFromPurge": true,
64               "isMain": false,
65               "name": "branch-1",
66             },
67             Object {
68               "analysisDate": "2018-01-01",
69               "excludedFromPurge": true,
70               "isMain": true,
71               "name": "master",
72             },
73             Object {
74               "analysisDate": "2018-01-01",
75               "base": "master",
76               "branch": "feature/foo/bar",
77               "key": "1",
78               "target": "master",
79               "title": "PR-1",
80             },
81             Object {
82               "analysisDate": "2018-01-01",
83               "excludedFromPurge": true,
84               "isMain": false,
85               "name": "branch-12",
86             },
87             Object {
88               "analysisDate": "2018-01-01",
89               "base": "master",
90               "branch": "feature/foo/bar",
91               "key": "2",
92               "target": "master",
93               "title": "PR-2",
94             },
95             Object {
96               "analysisDate": "2018-01-01",
97               "excludedFromPurge": true,
98               "isMain": false,
99               "name": "branch-3",
100             },
101             Object {
102               "analysisDate": "2018-01-01",
103               "excludedFromPurge": true,
104               "isMain": false,
105               "name": "branch-2",
106             },
107             Object {
108               "analysisDate": "2018-01-01",
109               "base": "master",
110               "branch": "feature/foo/bar",
111               "isOrphan": true,
112               "key": "2",
113               "target": "llb-100",
114               "title": "PR-2",
115             },
116           ]
117         }
118         component={
119           Object {
120             "breadcrumbs": Array [],
121             "key": "my-project",
122             "name": "MyProject",
123             "qualifier": "TRK",
124             "qualityGate": Object {
125               "isDefault": true,
126               "key": "30",
127               "name": "Sonar way",
128             },
129             "qualityProfiles": Array [
130               Object {
131                 "deleted": false,
132                 "key": "my-qp",
133                 "language": "ts",
134                 "name": "Sonar way",
135               },
136             ],
137             "tags": Array [],
138           }
139         }
140         currentBranchLike={
141           Object {
142             "analysisDate": "2018-01-01",
143             "excludedFromPurge": true,
144             "isMain": false,
145             "name": "branch-11",
146           }
147         }
148         onClose={[Function]}
149       />
150     }
151   >
152     <a
153       className="link-base-color link-no-underline"
154       href="#"
155       onClick={[Function]}
156     >
157       <Memo(CurrentBranchLike)
158         branchesEnabled={true}
159         component={
160           Object {
161             "breadcrumbs": Array [],
162             "key": "my-project",
163             "name": "MyProject",
164             "qualifier": "TRK",
165             "qualityGate": Object {
166               "isDefault": true,
167               "key": "30",
168               "name": "Sonar way",
169             },
170             "qualityProfiles": Array [
171               Object {
172                 "deleted": false,
173                 "key": "my-qp",
174                 "language": "ts",
175                 "name": "Sonar way",
176               },
177             ],
178             "tags": Array [],
179           }
180         }
181         currentBranchLike={
182           Object {
183             "analysisDate": "2018-01-01",
184             "excludedFromPurge": true,
185             "isMain": false,
186             "name": "branch-11",
187           }
188         }
189         hasManyBranches={true}
190       />
191     </a>
192   </Toggler>
193 </span>
194 `;