]> source.dussan.org Git - sonarqube.git/blob
2d1ac03a834bc6e3549a2887d3e05a7de2d80e9d
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render the titlebar correctly 1`] = `
4 <table
5   className="issue-table"
6 >
7   <tbody>
8     <tr>
9       <td>
10         <IssueMessage
11           message="Reduce the number of conditional operators (4) used in the expression"
12           organization="myorg"
13           rule="javascript:S1067"
14         />
15       </td>
16       <td
17         className="issue-table-meta-cell issue-table-meta-cell-first"
18       >
19         <ul
20           className="list-inline issue-meta-list"
21         >
22           <li
23             className="issue-meta"
24           >
25             <IssueChangelog
26               creationDate="2017-03-01T09:36:01+0100"
27               isOpen={false}
28               issue={
29                 Object {
30                   "creationDate": "2017-03-01T09:36:01+0100",
31                   "flows": Array [],
32                   "key": "AVsae-CQS-9G3txfbFN2",
33                   "line": 25,
34                   "message": "Reduce the number of conditional operators (4) used in the expression",
35                   "organization": "myorg",
36                   "project": "myproject",
37                   "rule": "javascript:S1067",
38                   "secondaryLocations": Array [],
39                   "textRange": Object {
40                     "endLine": 26,
41                     "endOffset": 15,
42                     "startLine": 25,
43                     "startOffset": 0,
44                   },
45                 }
46               }
47               onFail={[Function]}
48               togglePopup={[Function]}
49             />
50           </li>
51           <li
52             className="issue-meta"
53           >
54             <span
55               className="issue-meta-label"
56               title="line_number"
57             >
58               L
59               26
60             </span>
61           </li>
62           <li
63             className="issue-meta"
64           >
65             <Link
66               className="js-issue-permalink link-no-underline"
67               onClick={[Function]}
68               onlyActiveOnIndex={false}
69               style={Object {}}
70               target="_blank"
71               to={
72                 Object {
73                   "pathname": "/project/issues",
74                   "query": Object {
75                     "id": "myproject",
76                     "issues": "AVsae-CQS-9G3txfbFN2",
77                     "open": "AVsae-CQS-9G3txfbFN2",
78                   },
79                 }
80               }
81             >
82               <LinkIcon />
83             </Link>
84           </li>
85         </ul>
86       </td>
87     </tr>
88   </tbody>
89 </table>
90 `;
91
92 exports[`should render the titlebar with the filter 1`] = `
93 <table
94   className="issue-table"
95 >
96   <tbody>
97     <tr>
98       <td>
99         <IssueMessage
100           message="Reduce the number of conditional operators (4) used in the expression"
101           organization="myorg"
102           rule="javascript:S1067"
103         />
104       </td>
105       <td
106         className="issue-table-meta-cell issue-table-meta-cell-first"
107       >
108         <ul
109           className="list-inline issue-meta-list"
110         >
111           <li
112             className="issue-meta"
113           >
114             <IssueChangelog
115               creationDate="2017-03-01T09:36:01+0100"
116               isOpen={false}
117               issue={
118                 Object {
119                   "creationDate": "2017-03-01T09:36:01+0100",
120                   "flows": Array [],
121                   "key": "AVsae-CQS-9G3txfbFN2",
122                   "line": 25,
123                   "message": "Reduce the number of conditional operators (4) used in the expression",
124                   "organization": "myorg",
125                   "project": "myproject",
126                   "rule": "javascript:S1067",
127                   "secondaryLocations": Array [],
128                   "textRange": Object {
129                     "endLine": 26,
130                     "endOffset": 15,
131                     "startLine": 25,
132                     "startOffset": 0,
133                   },
134                 }
135               }
136               onFail={[Function]}
137               togglePopup={[Function]}
138             />
139           </li>
140           <li
141             className="issue-meta"
142           >
143             <span
144               className="issue-meta-label"
145               title="line_number"
146             >
147               L
148               26
149             </span>
150           </li>
151           <li
152             className="issue-meta"
153           >
154             <Link
155               className="js-issue-permalink link-no-underline"
156               onClick={[Function]}
157               onlyActiveOnIndex={false}
158               style={Object {}}
159               target="_blank"
160               to={
161                 Object {
162                   "pathname": "/project/issues",
163                   "query": Object {
164                     "id": "myproject",
165                     "issues": "AVsae-CQS-9G3txfbFN2",
166                     "open": "AVsae-CQS-9G3txfbFN2",
167                   },
168                 }
169               }
170             >
171               <LinkIcon />
172             </Link>
173           </li>
174           <li
175             className="issue-meta"
176           >
177             <SimilarIssuesFilter
178               isOpen={false}
179               issue={
180                 Object {
181                   "creationDate": "2017-03-01T09:36:01+0100",
182                   "flows": Array [],
183                   "key": "AVsae-CQS-9G3txfbFN2",
184                   "line": 25,
185                   "message": "Reduce the number of conditional operators (4) used in the expression",
186                   "organization": "myorg",
187                   "project": "myproject",
188                   "rule": "javascript:S1067",
189                   "secondaryLocations": Array [],
190                   "textRange": Object {
191                     "endLine": 26,
192                     "endOffset": 15,
193                     "startLine": 25,
194                     "startOffset": 0,
195                   },
196                 }
197               }
198               onFail={[Function]}
199               onFilter={[Function]}
200               togglePopup={[Function]}
201             />
202           </li>
203         </ul>
204       </td>
205     </tr>
206   </tbody>
207 </table>
208 `;