Skip to content

Instantly share code, notes, and snippets.

@tidusia
Created December 22, 2021 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tidusia/961cabab5ad06bdf8ec2c5d52eec2f7f to your computer and use it in GitHub Desktop.
Save tidusia/961cabab5ad06bdf8ec2c5d52eec2f7f to your computer and use it in GitHub Desktop.
test("should play the story interaction", async () => {
const onClick = jest.fn();
const { container } = render(<Default onClick={onClick} />);
await Default.play({ canvasElement: container });
expect(onClick).toHaveBeenCalledTimes(1);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment