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