]> source.dussan.org Git - sonarqube.git/blob
ee17dc8e5ce3279f3a835a74c417bd1398f6cb89
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <Modal
5   contentLabel="title"
6   onRequestClose={[MockFunction]}
7 >
8   <ValidationForm
9     initialValues={
10       {
11         "field": "foo",
12       }
13     }
14     onSubmit={[Function]}
15     validate={[MockFunction]}
16   >
17     <Component />
18   </ValidationForm>
19 </Modal>
20 `;
21
22 exports[`should render correctly 2`] = `
23 <ContextProvider
24   value={
25     {
26       "dirty": false,
27       "errors": {},
28       "getFieldHelpers": [Function],
29       "getFieldMeta": [Function],
30       "getFieldProps": [Function],
31       "handleBlur": [Function],
32       "handleChange": [Function],
33       "handleReset": [Function],
34       "handleSubmit": [Function],
35       "initialErrors": {},
36       "initialStatus": undefined,
37       "initialTouched": {},
38       "initialValues": {
39         "field": "foo",
40       },
41       "isSubmitting": false,
42       "isValid": true,
43       "isValidating": false,
44       "registerField": [Function],
45       "resetForm": [Function],
46       "setErrors": [Function],
47       "setFieldError": [Function],
48       "setFieldTouched": [Function],
49       "setFieldValue": [Function],
50       "setFormikState": [Function],
51       "setStatus": [Function],
52       "setSubmitting": [Function],
53       "setTouched": [Function],
54       "setValues": [Function],
55       "status": undefined,
56       "submitCount": 0,
57       "submitForm": [Function],
58       "touched": {},
59       "unregisterField": [Function],
60       "validateField": [Function],
61       "validateForm": [Function],
62       "validateOnBlur": true,
63       "validateOnChange": true,
64       "validateOnMount": true,
65       "values": {
66         "field": "foo",
67       },
68     }
69   }
70 >
71   <form
72     onSubmit={[Function]}
73   >
74     <header
75       className="modal-head"
76     >
77       <h2>
78         title
79       </h2>
80     </header>
81     <div
82       className="modal-body"
83     >
84       <input
85         name="field"
86         onBlur={[Function]}
87         onChange={[Function]}
88         type="text"
89         value="foo"
90       />
91     </div>
92     <footer
93       className="modal-foot"
94     >
95       <Spinner
96         className="spacer-right"
97         loading={false}
98       />
99       <SubmitButton
100         className="button-red"
101         disabled={true}
102       >
103         confirm
104       </SubmitButton>
105       <ResetButtonLink
106         disabled={false}
107         onClick={[MockFunction]}
108       >
109         cancel
110       </ResetButtonLink>
111     </footer>
112   </form>
113 </ContextProvider>
114 `;