]> source.dussan.org Git - sonarqube.git/blob
44929f62890f2c895146b00d54e22ccc2af00081
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render React extensions correctly 1`] = `
4 <Extension
5   appState={
6     Object {
7       "edition": "community",
8       "productionDatabase": true,
9       "qualifiers": Array [
10         "TRK",
11       ],
12       "settings": Object {},
13       "version": "1.0",
14     }
15   }
16   currentUser={
17     Object {
18       "isLoggedIn": false,
19     }
20   }
21   extension={
22     Object {
23       "key": "foo",
24       "name": "Foo",
25     }
26   }
27   intl={Object {}}
28   location={
29     Object {
30       "hash": "",
31       "key": "key",
32       "pathname": "/path",
33       "query": Object {},
34       "search": "",
35       "state": Object {},
36     }
37   }
38   router={
39     Object {
40       "createHref": [MockFunction],
41       "createPath": [MockFunction],
42       "go": [MockFunction],
43       "goBack": [MockFunction],
44       "goForward": [MockFunction],
45       "isActive": [MockFunction],
46       "push": [MockFunction],
47       "replace": [MockFunction],
48       "setRouteLeaveHook": [MockFunction],
49     }
50   }
51   updateCurrentUserHomepage={[MockFunction]}
52 >
53   <div>
54     <Helmet
55       title="Foo"
56     />
57     <div />
58   </div>
59 </Extension>
60 `;
61
62 exports[`should render React extensions correctly 2`] = `
63 <Extension
64   appState={
65     Object {
66       "edition": "community",
67       "productionDatabase": true,
68       "qualifiers": Array [
69         "TRK",
70       ],
71       "settings": Object {},
72       "version": "1.0",
73     }
74   }
75   currentUser={
76     Object {
77       "isLoggedIn": false,
78     }
79   }
80   extension={
81     Object {
82       "key": "foo",
83       "name": "Foo",
84     }
85   }
86   intl={Object {}}
87   location={
88     Object {
89       "hash": "",
90       "key": "key",
91       "pathname": "/path",
92       "query": Object {},
93       "search": "",
94       "state": Object {},
95     }
96   }
97   router={
98     Object {
99       "createHref": [MockFunction],
100       "createPath": [MockFunction],
101       "go": [MockFunction],
102       "goBack": [MockFunction],
103       "goForward": [MockFunction],
104       "isActive": [MockFunction],
105       "push": [MockFunction],
106       "replace": [MockFunction],
107       "setRouteLeaveHook": [MockFunction],
108     }
109   }
110   updateCurrentUserHomepage={[MockFunction]}
111 >
112   <div>
113     <Helmet
114       title="Foo"
115     />
116     <div
117       className="extension"
118     />
119   </div>
120 </Extension>
121 `;