-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathattributes-transformation.test.js.snap
144 lines (141 loc) · 3.84 KB
/
attributes-transformation.test.js.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
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`JavaScript output: transformed source code 1`] = `
"const object = {
first: \\"one-in-object\\",
second: \\"two-in-object\\"
};
const array = [\\"arr-one\\", \\"arr-two\\"];
module.exports = (
<div>
<div className=\\"one two\\" />
<div className=\\"one two\\" />
<div className=\\"100\\" />
<div className={array} />
<div className={object} />
<div className=\\"one two\\" />
<div className={[\\"one\\", \\"two\\"].join(\\" \\")} />
<div
className={{
first: true
}}
/>
<div {...object} after=\\"after\\" />
<div before=\\"before\\" {...object} />
<div before=\\"before\\" {...object} after=\\"after\\" />
<div className=\\"mix one two\\" />
<div className=\\"mix 100\\" />
<div className={\`mix \${array}\`} />
<div className={\`mix \${object}\`} />
<div className=\\"mix one two\\" />
<div className={\`mix \${[\\"one\\", \\"two\\"].join(\\" \\")}\`} />
<div
className={\`mix \${{
first: true
}}\`}
/>
<div {...object} after=\\"after\\" className=\\"mix\\" />
<div before=\\"before\\" {...object} className=\\"mix\\" />
<div before=\\"before\\" {...object} after=\\"after\\" className=\\"mix\\" />
</div>
);
"
`;
exports[`html output: generated html 1`] = `
<div>
<div
className="one two"
/>
<div
className="one two"
/>
<div
className="100"
/>
<div
className={
Array [
"arr-one",
"arr-two",
]
}
/>
<div
className={
Object {
"first": "one-in-object",
"second": "two-in-object",
}
}
/>
<div
className="one two"
/>
<div
className="one two"
/>
<div
className={
Object {
"first": true,
}
}
/>
<div
after="after"
first="one-in-object"
second="two-in-object"
/>
<div
before="before"
first="one-in-object"
second="two-in-object"
/>
<div
after="after"
before="before"
first="one-in-object"
second="two-in-object"
/>
<div
className="mix one two"
/>
<div
className="mix 100"
/>
<div
className="mix arr-one,arr-two"
/>
<div
className="mix [object Object]"
/>
<div
className="mix one two"
/>
<div
className="mix one two"
/>
<div
className="mix [object Object]"
/>
<div
after="after"
className="mix"
first="one-in-object"
second="two-in-object"
/>
<div
before="before"
className="mix"
first="one-in-object"
second="two-in-object"
/>
<div
after="after"
before="before"
className="mix"
first="one-in-object"
second="two-in-object"
/>
</div>
`;
exports[`static html output: static html 1`] = `"<div><div class=\\"one two\\"></div><div class=\\"one two\\"></div><div class=\\"100\\"></div><div class=\\"arr-one,arr-two\\"></div><div class=\\"[object Object]\\"></div><div class=\\"one two\\"></div><div class=\\"one two\\"></div><div class=\\"[object Object]\\"></div><div first=\\"one-in-object\\" second=\\"two-in-object\\" after=\\"after\\"></div><div before=\\"before\\" first=\\"one-in-object\\" second=\\"two-in-object\\"></div><div before=\\"before\\" first=\\"one-in-object\\" second=\\"two-in-object\\" after=\\"after\\"></div><div class=\\"mix one two\\"></div><div class=\\"mix 100\\"></div><div class=\\"mix arr-one,arr-two\\"></div><div class=\\"mix [object Object]\\"></div><div class=\\"mix one two\\"></div><div class=\\"mix one two\\"></div><div class=\\"mix [object Object]\\"></div><div first=\\"one-in-object\\" second=\\"two-in-object\\" after=\\"after\\" class=\\"mix\\"></div><div before=\\"before\\" first=\\"one-in-object\\" second=\\"two-in-object\\" class=\\"mix\\"></div><div before=\\"before\\" first=\\"one-in-object\\" second=\\"two-in-object\\" after=\\"after\\" class=\\"mix\\"></div></div>"`;