]> source.dussan.org Git - sonarqube.git/blob
2712037667df9f039e0e75073ca9907924f73d4f
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should not render open component 1`] = `
4 <nav
5   className="workspace-nav"
6 >
7   <ul
8     className="workspace-nav-list"
9   >
10     <WorkspaceNavComponent
11       component={
12         {
13           "branchLike": undefined,
14           "key": "foo",
15         }
16       }
17       key="component-foo"
18       onClose={[MockFunction]}
19       onOpen={[MockFunction]}
20     />
21     <WorkspaceNavRule
22       key="rule-qux"
23       onClose={[MockFunction]}
24       onOpen={[MockFunction]}
25       rule={
26         {
27           "key": "qux",
28         }
29       }
30     />
31   </ul>
32 </nav>
33 `;
34
35 exports[`should not render open rule 1`] = `
36 <nav
37   className="workspace-nav"
38 >
39   <ul
40     className="workspace-nav-list"
41   >
42     <WorkspaceNavComponent
43       component={
44         {
45           "branchLike": undefined,
46           "key": "foo",
47         }
48       }
49       key="component-foo"
50       onClose={[MockFunction]}
51       onOpen={[MockFunction]}
52     />
53     <WorkspaceNavComponent
54       component={
55         {
56           "branchLike": undefined,
57           "key": "bar",
58         }
59       }
60       key="component-bar"
61       onClose={[MockFunction]}
62       onOpen={[MockFunction]}
63     />
64   </ul>
65 </nav>
66 `;
67
68 exports[`should render 1`] = `
69 <nav
70   className="workspace-nav"
71 >
72   <ul
73     className="workspace-nav-list"
74   >
75     <WorkspaceNavComponent
76       component={
77         {
78           "branchLike": undefined,
79           "key": "foo",
80         }
81       }
82       key="component-foo"
83       onClose={[MockFunction]}
84       onOpen={[MockFunction]}
85     />
86     <WorkspaceNavComponent
87       component={
88         {
89           "branchLike": undefined,
90           "key": "bar",
91         }
92       }
93       key="component-bar"
94       onClose={[MockFunction]}
95       onOpen={[MockFunction]}
96     />
97     <WorkspaceNavRule
98       key="rule-qux"
99       onClose={[MockFunction]}
100       onOpen={[MockFunction]}
101       rule={
102         {
103           "key": "qux",
104         }
105       }
106     />
107   </ul>
108 </nav>
109 `;