]> source.dussan.org Git - sonarqube.git/blob
dfb462c293fdd413a1812c86893fbf289d848ed6
[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     closeOnClickOutside={false}
9     onRequestClose={[Function]}
10     open={true}
11     overlay={
12       <CommentPopup
13         onComment={[Function]}
14         placeholder=""
15         toggleComment={
16           [MockFunction] {
17             "calls": Array [
18               Array [],
19             ],
20             "results": Array [
21               Object {
22                 "type": "return",
23                 "value": undefined,
24               },
25             ],
26           }
27         }
28       />
29     }
30   >
31     <ButtonLink
32       className="issue-action js-issue-comment"
33       onClick={[Function]}
34     >
35       <span
36         className="issue-meta-label"
37       >
38         issue.comment.formlink
39       </span>
40     </ButtonLink>
41   </Toggler>
42 </li>
43 `;
44
45 exports[`should render correctly 1`] = `
46 <li
47   className="issue-meta dropdown"
48 >
49   <Toggler
50     closeOnClickOutside={false}
51     onRequestClose={[Function]}
52     open={false}
53     overlay={
54       <CommentPopup
55         onComment={[Function]}
56         placeholder=""
57         toggleComment={[MockFunction]}
58       />
59     }
60   >
61     <ButtonLink
62       className="issue-action js-issue-comment"
63       onClick={[Function]}
64     >
65       <span
66         className="issue-meta-label"
67       >
68         issue.comment.formlink
69       </span>
70     </ButtonLink>
71   </Toggler>
72 </li>
73 `;