Mock AnimationMixer with stopAllAction in runtime-host.test.ts
This commit is contained in:
@@ -368,7 +368,9 @@ describe("RuntimeHost", () => {
|
|||||||
.mockImplementation(() => undefined);
|
.mockImplementation(() => undefined);
|
||||||
hostInternals.animationMixers.set(
|
hostInternals.animationMixers.set(
|
||||||
modelInstance.id,
|
modelInstance.id,
|
||||||
{} as unknown as AnimationMixer
|
{
|
||||||
|
stopAllAction: vi.fn()
|
||||||
|
} as unknown as AnimationMixer
|
||||||
);
|
);
|
||||||
const playAnimationSpy = vi
|
const playAnimationSpy = vi
|
||||||
.spyOn(hostInternals, "applyPlayAnimationAction")
|
.spyOn(hostInternals, "applyPlayAnimationAction")
|
||||||
|
|||||||
Reference in New Issue
Block a user