-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathunstable_animations.test.ts
More file actions
57 lines (53 loc) · 1.12 KB
/
unstable_animations.test.ts
File metadata and controls
57 lines (53 loc) · 1.12 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
import { compile } from "../compiler";
test.skip("test compiler", () => {
const compiled = compile(
`
.test {
animation: slide-in 1s;
}
@keyframes slide-in {
from {
margin-left: 100%;
}
to {
margin-left: 0%;
}
}
`,
);
expect(compiled.stylesheet()).toStrictEqual({
k: [
[
"slide-in",
[
["from", [{ marginLeft: "100%" }]],
["to", [{ marginLeft: "0%" }]],
],
],
],
s: [
[
"test",
[
[
{
s: [1, 1],
d: [
{
animationName: [[{}, "animation", ["slide-in"], 1]],
animationDuration: [1000],
animationTimingFunction: ["ease"],
animationIterationCount: [1],
animationDirection: ["normal"],
animationPlayState: ["running"],
animationDelay: [0],
animationFillMode: ["none"],
},
],
},
],
],
],
],
});
});