Skip to content

Commit

Permalink
Latest
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgperry committed May 14, 2024
1 parent a617e96 commit a353fbd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,14 @@ describe("animate prop as object", () => {
const promise = new Promise((resolve) => {
const resolveContainer = () => {
requestAnimationFrame(() => {
resolve(container)
resolve(container.firstChild as any)
})
}
const Component = () => (
<motion.div
initial={{ x: 10 }}
animate={{ x: 30 }}
transition={{ duration: 10 }}
transition={{ duration: 0.01 }}
transformTemplate={({ x }, generated) =>
`translateY(${x}) ${generated}`
}
Expand All @@ -224,7 +224,7 @@ describe("animate prop as object", () => {
rerender(<Component />)
})
return expect(promise).resolves.toHaveStyle(
"transform: translateX(30px) translateX(30px) translateZ(0)"
"transform: translateY(30px) translateX(30px) translateZ(0)"
)
})
test("animating between none/block fires onAnimationComplete", async () => {
Expand Down

0 comments on commit a353fbd

Please sign in to comment.