File tree Expand file tree Collapse file tree 1 file changed +113
-0
lines changed
src/__tests__/__snapshots__ Expand file tree Collapse file tree 1 file changed +113
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports [` context provider should mount correctly 1` ] = `
4
+ <form
5
+ id = " form"
6
+ onSubmit = { [Function ]}
7
+ >
8
+ <input
9
+ id = " fname-input"
10
+ onBlur = { [Function ]}
11
+ onChange = { [Function ]}
12
+ value = " "
13
+ />
14
+ <input
15
+ id = " lname-input"
16
+ onBlur = { [Function ]}
17
+ onChange = { [Function ]}
18
+ value = " "
19
+ />
20
+ </form >
21
+ ` ;
22
+
23
+ exports [` context validation error custom handler 1` ] = `
24
+ <form
25
+ id = " form"
26
+ onSubmit = { [Function ]}
27
+ >
28
+ <input
29
+ id = " fname-input"
30
+ onBlur = { [Function ]}
31
+ onChange = { [Function ]}
32
+ value = " "
33
+ />
34
+ <strong >
35
+ this is a custom error
36
+ </strong >
37
+ <input
38
+ id = " lname-input"
39
+ onBlur = { [Function ]}
40
+ onChange = { [Function ]}
41
+ value = " "
42
+ />
43
+ <strong >
44
+ this is a custom error
45
+ </strong >
46
+ </form >
47
+ ` ;
48
+
49
+ exports [` context validation error on blur field 1` ] = `
50
+ <form
51
+ id = " form"
52
+ onSubmit = { [Function ]}
53
+ >
54
+ <input
55
+ id = " fname-input"
56
+ onBlur = { [Function ]}
57
+ onChange = { [Function ]}
58
+ value = " "
59
+ />
60
+ <strong >
61
+ First name cannot be empty
62
+ </strong >
63
+ <input
64
+ id = " lname-input"
65
+ onBlur = { [Function ]}
66
+ onChange = { [Function ]}
67
+ value = " "
68
+ />
69
+ </form >
70
+ ` ;
71
+
72
+ exports [` context validation error on form submit 1` ] = `
73
+ <form
74
+ id = " form"
75
+ onSubmit = { [Function ]}
76
+ >
77
+ <input
78
+ id = " fname-input"
79
+ onBlur = { [Function ]}
80
+ onChange = { [Function ]}
81
+ value = " Nick"
82
+ />
83
+ <input
84
+ id = " lname-input"
85
+ onBlur = { [Function ]}
86
+ onChange = { [Function ]}
87
+ value = " "
88
+ />
89
+ <strong >
90
+ Last name cannot be empty
91
+ </strong >
92
+ </form >
93
+ ` ;
94
+
95
+ exports [` context validation success on form submit 1` ] = `
96
+ <form
97
+ id = " form"
98
+ onSubmit = { [Function ]}
99
+ >
100
+ <input
101
+ id = " fname-input"
102
+ onBlur = { [Function ]}
103
+ onChange = { [Function ]}
104
+ value = " Nick"
105
+ />
106
+ <input
107
+ id = " lname-input"
108
+ onBlur = { [Function ]}
109
+ onChange = { [Function ]}
110
+ value = " Fury"
111
+ />
112
+ </form >
113
+ ` ;
You can’t perform that action at this time.
0 commit comments