]> source.dussan.org Git - sonarqube.git/blob
d62e8722c21b958c0457fa3a221c041aa0bdddda
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: default 1`] = `
4 <div
5   className="big-spacer-top"
6 >
7   <ButtonToggle
8     label="test-label"
9     onCheck={[MockFunction]}
10     options={
11       [
12         {
13           "label": "foo.bar.foo",
14           "value": "foo",
15         },
16         {
17           "label": "foo.bar.baz",
18           "value": "baz",
19         },
20       ]
21     }
22   />
23 </div>
24 `;
25
26 exports[`should render correctly: option checked 1`] = `
27 <div
28   className="big-spacer-top"
29 >
30   <ButtonToggle
31     label="test-label"
32     onCheck={[MockFunction]}
33     options={
34       [
35         {
36           "label": "foo.bar.foo",
37           "value": "foo",
38         },
39         {
40           "label": "foo.bar.baz",
41           "value": "baz",
42         },
43       ]
44     }
45     value="baz"
46   />
47 </div>
48 `;
49
50 exports[`should render correctly: with title 1`] = `
51 <div
52   className="big-spacer-top"
53 >
54   <h4
55     className="spacer-bottom"
56   >
57     title.key
58   </h4>
59   <ButtonToggle
60     label="test-label"
61     onCheck={[MockFunction]}
62     options={
63       [
64         {
65           "label": "foo.bar.foo",
66           "value": "foo",
67         },
68         {
69           "label": "foo.bar.baz",
70           "value": "baz",
71         },
72       ]
73     }
74   />
75 </div>
76 `;