]> source.dussan.org Git - sonarqube.git/blob
e6dde0fb6ede056b2d02a33188458cabf79093b4
[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         "key": "foo",
49         "more_link": "more_url",
50         "name": "Foo",
51         "request_license_link": "license_url",
52       }
53     }
54     updateLicense={[Function]}
55   />
56   <footer
57     className="modal-foot"
58   >
59     <a
60       className="js-modal-close"
61       href="#"
62       onClick={[Function]}
63     >
64       cancel
65     </a>
66   </footer>
67 </Modal>
68 `;