]> source.dussan.org Git - sonarqube.git/blob
492f821f6300fd7c92a5744a923836bcc5bfb587
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should correctly change the button based on the status 1`] = `
4 <button
5   className="js-confirm"
6   onClick={[Function]}
7 >
8   save
9 </button>
10 `;
11
12 exports[`should correctly change the button based on the status 2`] = `
13 <button
14   className="js-confirm"
15   onClick={[Function]}
16 >
17   marketplace.install
18 </button>
19 `;
20
21 exports[`should display correctly 1`] = `
22 <Modal
23   ariaHideApp={true}
24   bodyOpenClassName="ReactModal__Body--open"
25   className="modal"
26   closeTimeoutMS={0}
27   contentLabel="marketplace.install_x.Foo"
28   isOpen={true}
29   onRequestClose={[Function]}
30   overlayClassName="modal-overlay"
31   parentSelector={[Function]}
32   portalClassName="ReactModalPortal"
33   shouldCloseOnOverlayClick={true}
34 >
35   <header
36     className="modal-head"
37   >
38     <h2>
39       marketplace.install_x.Foo
40     </h2>
41   </header>
42   <LicenseEditionSet
43     className="modal-body"
44     edition={
45       Object {
46         "desc": "Foo desc",
47         "download_link": "download_url",
48         "more_link": "more_url",
49         "name": "Foo",
50         "request_license_link": "license_url",
51       }
52     }
53     updateLicense={[Function]}
54   />
55   <footer
56     className="modal-foot"
57   >
58     <a
59       className="js-modal-close"
60       href="#"
61       onClick={[Function]}
62     >
63       cancel
64     </a>
65   </footer>
66 </Modal>
67 `;