]> source.dussan.org Git - sonarqube.git/blob
774bd2669b7c3feafb6767dc3da32b66eed3f298
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should open the popup when the button is clicked 1`] = `
4 Array [
5   Array [
6     "changelog",
7     undefined,
8   ],
9 ]
10 `;
11
12 exports[`should open the popup when the button is clicked 2`] = `
13 <div
14   className="dropdown"
15 >
16   <Toggler
17     onRequestClose={[Function]}
18     open={true}
19     overlay={
20       <ChangelogPopup
21         issue={
22           Object {
23             "author": "john.david.dalton@gmail.com",
24             "creationDate": "2017-03-01T09:36:01+0100",
25             "key": "issuekey",
26           }
27         }
28       />
29     }
30   >
31     <ButtonLink
32       className="issue-action issue-action-with-options js-issue-show-changelog"
33       onClick={[Function]}
34     >
35       <span
36         className="issue-meta-label"
37       >
38         <DateFromNow
39           date="2017-03-01T09:36:01+0100"
40         />
41       </span>
42       <DropdownIcon
43         className="little-spacer-left"
44       />
45     </ButtonLink>
46   </Toggler>
47 </div>
48 `;
49
50 exports[`should render correctly 1`] = `
51 <div
52   className="dropdown"
53 >
54   <Toggler
55     onRequestClose={[Function]}
56     open={false}
57     overlay={
58       <ChangelogPopup
59         issue={
60           Object {
61             "author": "john.david.dalton@gmail.com",
62             "creationDate": "2017-03-01T09:36:01+0100",
63             "key": "issuekey",
64           }
65         }
66       />
67     }
68   >
69     <ButtonLink
70       className="issue-action issue-action-with-options js-issue-show-changelog"
71       onClick={[Function]}
72     >
73       <span
74         className="issue-meta-label"
75       >
76         <DateFromNow
77           date="2017-03-01T09:36:01+0100"
78         />
79       </span>
80       <DropdownIcon
81         className="little-spacer-left"
82       />
83     </ButtonLink>
84   </Toggler>
85 </div>
86 `;