-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathfunctional.spec.jsx.snap
More file actions
155 lines (145 loc) · 2.34 KB
/
functional.spec.jsx.snap
File metadata and controls
155 lines (145 loc) · 2.34 KB
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
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`functional tests should update dynamic props for conditional rules 1`] = `
".button-1-id {
padding: 10px;
}
@media screen {
.button-1-id .button {
margin: 10px;
}
}"
`;
exports[`functional tests should update dynamic props for conditional rules 2`] = `
".button-1-id {
padding: 0;
}
@media screen {
.button-1-id .button {
margin: 0;
}
}"
`;
exports[`functional tests should update nested props 1`] = `
".button-id {
font-size: 12px;
}
.div-1-id {
padding: 15px;
}
.div-3-id:hover .button-id {
color: green;
}
.div-4-id:hover .button-id {
color: red;
}"
`;
exports[`functional tests should update nested props 2`] = `
".button-id {
font-size: 12px;
}
.div-1-id {
padding: 15px;
}
.div-3-id:hover .button-id {
color: red;
}
.div-4-id:hover .button-id {
color: green;
}"
`;
exports[`functional tests should update props and unmount 1`] = `
".div-1-id {
margin: 50px;
}
.header-2-id {
padding: 10px;
}
.h1-5-id {
color: red;
}
.section-3-id {
color: red;
}
.button-6-id {
margin: 0;
}
.button-7-id {
margin: 10px;
}
.section-4-id {
color: yellow;
}"
`;
exports[`functional tests should update props and unmount 2`] = `
".div-1-id {
margin: 50px;
}
.header-2-id {
padding: 10px;
}
.h1-5-id {
color: red;
}
.section-3-id {
color: red;
}
.button-6-id {
margin: 0;
}
.button-7-id {
margin: 20px;
}
.section-4-id {
color: yellow;
}"
`;
exports[`functional tests should use Styled Component classname in string 1`] = `
".div-4-id:not(:first-child) .static-2-id {
display: none;
}
.div-4-id:not(:last-child) .static-3-id {
visibility: hidden;
}
.div-4-id .static-2-id {
color: green;
}
.div-1-id {
color: red;
}
.img-5-id {
width: 30px;
}"
`;
exports[`functional tests should use Styled Component classname in string 2`] = `
<StyledElement>
<div
className="div-4-id"
>
<StyledElement>
<div
className=".static-2-id div-1-id"
>
name
</div>
</StyledElement>
<StyledElement
width={30}
>
<img
className=".static-3-id img-5-id"
width={30}
/>
</StyledElement>
</div>
</StyledElement>
`;
exports[`functional tests should use props on remount 1`] = `
".button-1-id {
color: black;
}"
`;
exports[`functional tests should use props on remount 2`] = `
".button-1-id {
color: red;
}"
`;