Skip to content

Commit

Permalink
Merge pull request #121 from tyankatsu0105/docs/add-async [skip-ci]
Browse files Browse the repository at this point in the history
docs: add async
  • Loading branch information
yannbf committed Apr 18, 2023
2 parents e08bc94 + 25b8841 commit fe90e1f
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 fe90e1f

Please sign in to comment.