-
-
Notifications
You must be signed in to change notification settings - Fork 636
/
snapshots.spec.tsx.snap
175 lines (164 loc) · 2.3 KB
/
snapshots.spec.tsx.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Snapshots JSX Should flush setStates before building snapshot 1`] = `
<div
className="App"
>
<header
className="App-header"
>
<img
alt="logo"
className="App-logo"
src="logo"
/>
<p>
Edit
<code>
src/App.js
</code>
and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
rel="noopener noreferrer"
target="_blank"
>
##BAR##
</a>
</header>
</div>
`;
exports[`Snapshots JSX Should not fail when returning children array from component root, Github #1404 1`] = `
[
<label />,
<span>
o
</span>,
<span>
k
</span>,
]
`;
exports[`Snapshots JSX Should not fail when returning children array from component root, which contains text node. Github #1404 1`] = `
[
<label />,
<span>
o
</span>,
<span>
k
</span>,
"asd",
"1",
]
`;
exports[`Snapshots JSX Should render attributes and className 1`] = `
<div
className="Testing"
/>
`;
exports[`Snapshots JSX Should render component children 1`] = `
<div
className="Testing"
>
<div
className="ok"
>
ABC
</div>
</div>
`;
exports[`Snapshots JSX Should render deeper component 1`] = `
<div
aria-rowindex={1}
className="okay"
onClick={[Function]}
>
<div>
Okay
<div>
<ul>
<li>
Okay
</li>
</ul>
</div>
<span
className="yea"
/>
</div>
</div>
`;
exports[`Snapshots JSX Should render fragment 1`] = `
<div>
[
<div
id="a1"
>
A1
</div>,
<div>
A2
</div>,
]
[
<div
id="b1"
>
B1
</div>,
]
[
<div
id="c1"
>
C1
</div>,
<div>
C2
</div>,
<div>
C3
</div>,
]
</div>
`;
exports[`Snapshots JSX Should render fragment from component root 1`] = `
<div>
1
</div>
`;
exports[`Snapshots JSX Should render fragment root 1`] = `
[
<div>
First
</div>,
<div>
Second
</div>,
]
`;
exports[`Snapshots JSX Should render html element 1`] = `
<a
aria-colspan={3}
className="foo"
onClick={[Function]}
>
Bar
</a>
`;
exports[`Snapshots JSX Should render multiple elements 1`] = `
<span>
<a>
T
</a>
<span
className="foo"
>
est
</span>
12
Extra
</span>
`;