]> source.dussan.org Git - sonarqube.git/blob
4821cb22c5668a307e580ed01609045a1c3b9f70
[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       "action": "PUSH",
31       "hash": "",
32       "key": "key",
33       "pathname": "/path",
34       "query": Object {},
35       "search": "",
36       "state": Object {},
37     }
38   }
39   router={
40     Object {
41       "createHref": [MockFunction],
42       "createPath": [MockFunction],
43       "go": [MockFunction],
44       "goBack": [MockFunction],
45       "goForward": [MockFunction],
46       "isActive": [MockFunction],
47       "push": [MockFunction],
48       "replace": [MockFunction],
49       "setRouteLeaveHook": [MockFunction],
50     }
51   }
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       "action": "PUSH",
90       "hash": "",
91       "key": "key",
92       "pathname": "/path",
93       "query": Object {},
94       "search": "",
95       "state": Object {},
96     }
97   }
98   router={
99     Object {
100       "createHref": [MockFunction],
101       "createPath": [MockFunction],
102       "go": [MockFunction],
103       "goBack": [MockFunction],
104       "goForward": [MockFunction],
105       "isActive": [MockFunction],
106       "push": [MockFunction],
107       "replace": [MockFunction],
108       "setRouteLeaveHook": [MockFunction],
109     }
110   }
111 >
112   <div>
113     <Helmet
114       title="Foo"
115     />
116     <div
117       className="extension"
118     />
119   </div>
120 </Extension>
121 `;