Skip to content

Commit

Permalink
docs: add async
Browse files Browse the repository at this point in the history
  • Loading branch information
tyankatsu0105 committed Feb 22, 2023
1 parent e08bc94 commit 25b8841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/await-interactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Examples of **correct** code for this rule:
```js
import { within, userEvent } from '@storybook/testing-library'

MyStory.play = (context) => {
MyStory.play = async (context) => {
const canvas = within(context.canvasElement)
// awaited 👍
await userEvent.click(canvas.getByRole('button'))
Expand Down

0 comments on commit 25b8841

Please sign in to comment.