Created
December 22, 2021 20:59
-
-
Save tidusia/961cabab5ad06bdf8ec2c5d52eec2f7f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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