]> source.dussan.org Git - sonarqube.git/blob
110542461d9cb4af3cdab703e65215a3e4d4ccc3
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly for a branch 1`] = `
4 <Fragment>
5   <div
6     className="display-flex-center flex-0 small"
7   >
8     <span
9       className="header-meta-warnings"
10     >
11       <ComponentNavWarnings
12         componentKey="my-project"
13         onWarningDismiss={[MockFunction]}
14         warnings={
15           Array [
16             Object {
17               "dismissable": false,
18               "key": "foo",
19               "message": "ERROR_1",
20             },
21             Object {
22               "dismissable": false,
23               "key": "foo",
24               "message": "ERROR_2",
25             },
26           ]
27         }
28       />
29     </span>
30     <span
31       className="spacer-left nowrap note"
32     >
33       <DateTimeFormatter
34         date="2017-01-02T00:00:00.000Z"
35       />
36     </span>
37     <span
38       className="spacer-left nowrap note"
39     >
40       version 0.0.1
41     </span>
42     <withCurrentUserContext(HomePageSelect)
43       className="spacer-left"
44       currentPage={
45         Object {
46           "branch": "branch-6.7",
47           "component": "my-project",
48           "type": "PROJECT",
49         }
50       }
51     />
52   </div>
53 </Fragment>
54 `;
55
56 exports[`should render correctly for a main project branch 1`] = `
57 <Fragment>
58   <div
59     className="display-flex-center flex-0 small"
60   >
61     <span
62       className="header-meta-warnings"
63     >
64       <ComponentNavWarnings
65         componentKey="my-project"
66         onWarningDismiss={[MockFunction]}
67         warnings={
68           Array [
69             Object {
70               "dismissable": false,
71               "key": "foo",
72               "message": "ERROR_1",
73             },
74             Object {
75               "dismissable": false,
76               "key": "foo",
77               "message": "ERROR_2",
78             },
79           ]
80         }
81       />
82     </span>
83     <span
84       className="spacer-left nowrap note"
85     >
86       <DateTimeFormatter
87         date="2017-01-02T00:00:00.000Z"
88       />
89     </span>
90     <span
91       className="spacer-left nowrap note"
92     >
93       version 0.0.1
94     </span>
95     <withCurrentUserContext(HomePageSelect)
96       className="spacer-left"
97       currentPage={
98         Object {
99           "branch": undefined,
100           "component": "my-project",
101           "type": "PROJECT",
102         }
103       }
104     />
105   </div>
106 </Fragment>
107 `;
108
109 exports[`should render correctly for a portfolio 1`] = `
110 <Fragment>
111   <div
112     className="display-flex-center flex-0 small"
113   >
114     <span
115       className="header-meta-warnings"
116     >
117       <ComponentNavWarnings
118         componentKey="foo"
119         onWarningDismiss={[MockFunction]}
120         warnings={
121           Array [
122             Object {
123               "dismissable": false,
124               "key": "foo",
125               "message": "ERROR_1",
126             },
127             Object {
128               "dismissable": false,
129               "key": "foo",
130               "message": "ERROR_2",
131             },
132           ]
133         }
134       />
135     </span>
136     <withCurrentUserContext(HomePageSelect)
137       className="spacer-left"
138       currentPage={
139         Object {
140           "component": "foo",
141           "type": "PORTFOLIO",
142         }
143       }
144     />
145   </div>
146 </Fragment>
147 `;
148
149 exports[`should render correctly for a pull request 1`] = `
150 <Fragment>
151   <div
152     className="display-flex-center flex-0 small"
153   >
154     <span
155       className="header-meta-warnings"
156     >
157       <ComponentNavWarnings
158         componentKey="my-project"
159         onWarningDismiss={[MockFunction]}
160         warnings={
161           Array [
162             Object {
163               "dismissable": false,
164               "key": "foo",
165               "message": "ERROR_1",
166             },
167             Object {
168               "dismissable": false,
169               "key": "foo",
170               "message": "ERROR_2",
171             },
172           ]
173         }
174       />
175     </span>
176     <span
177       className="spacer-left nowrap note"
178     >
179       <DateTimeFormatter
180         date="2017-01-02T00:00:00.000Z"
181       />
182     </span>
183   </div>
184   <div
185     className="navbar-context-meta-secondary display-inline-flex-center"
186   >
187     <a
188       className="display-inline-flex-center big-spacer-right"
189       href="https://example.com/pull/1234"
190       rel="noopener noreferrer"
191       target="_blank"
192     >
193       branches.see_the_pr
194       <DetachIcon
195         className="little-spacer-left"
196         size={12}
197       />
198     </a>
199     <withBranchStatus(BranchStatus)
200       branchLike={
201         Object {
202           "analysisDate": "2018-01-01",
203           "base": "master",
204           "branch": "feature/foo/bar",
205           "key": "1001",
206           "target": "master",
207           "title": "Foo Bar feature",
208           "url": "https://example.com/pull/1234",
209         }
210       }
211       component={
212         Object {
213           "analysisDate": "2017-01-02T00:00:00.000Z",
214           "breadcrumbs": Array [],
215           "key": "my-project",
216           "name": "MyProject",
217           "qualifier": "TRK",
218           "qualityGate": Object {
219             "isDefault": true,
220             "key": "30",
221             "name": "Sonar way",
222           },
223           "qualityProfiles": Array [
224             Object {
225               "deleted": false,
226               "key": "my-qp",
227               "language": "ts",
228               "name": "Sonar way",
229             },
230           ],
231           "tags": Array [],
232           "version": "0.0.1",
233         }
234       }
235     />
236   </div>
237 </Fragment>
238 `;