]> source.dussan.org Git - sonarqube.git/blob
1721de8d175f3eb74ad9457738d1cb0769a37aaf
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should open the popup when the button is clicked 1`] = `
4 <li
5   className="issue-meta dropdown"
6 >
7   <Toggler
8     onRequestClose={[Function]}
9     open={true}
10     overlay={
11       <CommentPopup
12         onComment={[Function]}
13         placeholder=""
14         toggleComment={
15           [MockFunction] {
16             "calls": Array [
17               Array [],
18             ],
19             "results": Array [
20               Object {
21                 "isThrow": false,
22                 "value": undefined,
23               },
24             ],
25           }
26         }
27       />
28     }
29   >
30     <Button
31       className="button-link issue-action js-issue-comment"
32       onClick={[Function]}
33     >
34       <span
35         className="issue-meta-label"
36       >
37         issue.comment.formlink
38       </span>
39     </Button>
40   </Toggler>
41 </li>
42 `;
43
44 exports[`should render correctly 1`] = `
45 <li
46   className="issue-meta dropdown"
47 >
48   <Toggler
49     onRequestClose={[Function]}
50     open={false}
51     overlay={
52       <CommentPopup
53         onComment={[Function]}
54         placeholder=""
55         toggleComment={[MockFunction]}
56       />
57     }
58   >
59     <Button
60       className="button-link issue-action js-issue-comment"
61       onClick={[Function]}
62     >
63       <span
64         className="issue-meta-label"
65       >
66         issue.comment.formlink
67       </span>
68     </Button>
69   </Toggler>
70 </li>
71 `;