Skip to content

Commit

Permalink
Fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgperry authored and mergatron[bot] committed Mar 29, 2023
1 parent be29e0b commit 9c7881a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/framer-motion-3d/src/render/__tests__/index.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ResolvedValues } from "framer-motion"
import { ResolvedValues, sync } from "framer-motion"
import * as React from "react"
import { useEffect, useRef } from "react"
import { Euler, Vector3 } from "three"
Expand Down Expand Up @@ -240,7 +240,7 @@ describe("motion for three", () => {
}

ReactThreeTestRenderer.create(<Component />)
setTimeout(() => resolve([x.get(), y.get()]), 5)
sync.update(() => resolve([x.get(), y.get()]), 5)
})

expect(result[0]).toEqual(100)
Expand Down

0 comments on commit 9c7881a

Please # to comment.