]> source.dussan.org Git - sonarqube.git/blob
f914a1314a5bb4bed1466ccd2bd1cf5f1d7fc6dd
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <div
5   className="menu abs-width-300"
6 >
7   <MultiSelect
8     allowNewElements={false}
9     allowSelection={true}
10     elements={Array []}
11     filterSelected={[MockFunction]}
12     footerNode=""
13     listSize={0}
14     onSearch={[MockFunction]}
15     onSelect={[Function]}
16     onUnselect={[MockFunction]}
17     placeholder="search.search_for_tags"
18     renderLabel={[Function]}
19     selectedElements={Array []}
20     validateSearchInput={[Function]}
21   />
22 </div>
23 `;
24
25 exports[`should render correctly whith 6+ selected elements 1`] = `
26 <div
27   className="menu abs-width-300"
28 >
29   <MultiSelect
30     allowNewElements={false}
31     allowSelection={false}
32     elements={Array []}
33     filterSelected={[MockFunction]}
34     footerNode={
35       <Alert
36         className="spacer-left spacer-right spacer-top"
37         variant="info"
38       >
39         project_activity.graphs.custom.add_metric_info
40       </Alert>
41     }
42     listSize={0}
43     onSearch={[MockFunction]}
44     onSelect={[Function]}
45     onUnselect={[MockFunction]}
46     placeholder="search.search_for_tags"
47     renderLabel={[Function]}
48     selectedElements={
49       Array [
50         "1",
51         "2",
52         "3",
53         "4",
54         "5",
55         "6",
56       ]
57     }
58     validateSearchInput={[Function]}
59   />
60 </div>
61 `;
62
63 exports[`should render correctly with type filter 1`] = `
64 <div
65   className="menu abs-width-300"
66 >
67   <MultiSelect
68     allowNewElements={false}
69     allowSelection={true}
70     elements={Array []}
71     filterSelected={[MockFunction]}
72     footerNode={
73       <Alert
74         className="spacer-left spacer-right spacer-top"
75         variant="info"
76       >
77         project_activity.graphs.custom.type_x_message.metric.type.filter1, metric.type.filter2
78       </Alert>
79     }
80     listSize={0}
81     onSearch={[MockFunction]}
82     onSelect={[Function]}
83     onUnselect={[MockFunction]}
84     placeholder="search.search_for_tags"
85     renderLabel={[Function]}
86     selectedElements={Array []}
87     validateSearchInput={[Function]}
88   />
89 </div>
90 `;