Skip to content

Commit

Permalink
improve play function tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Jun 19, 2023
1 parent 8ba0176 commit 80d149f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/addons/interactions/template/stories/basics.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const Callback = {
await fireEvent.click(canvas.getByRole('button'));
});

await expect(args.onSuccess).toHaveBeenCalled();
await expect(args.onSuccess).toHaveBeenCalledWith('test');
},
};

Expand Down Expand Up @@ -113,7 +113,7 @@ export const UserEventSetup = {
await user.keyboard('{enter}');
const submitButton = await canvas.findByRole('button');
await expect(submitButton).toHaveFocus();
await expect(args.onSuccess).toHaveBeenCalled();
await expect(args.onSuccess).toHaveBeenCalledWith('Pasting: foobar');
});
},
};

0 comments on commit 80d149f

Please sign in to comment.