Skip to content

Commit

Permalink
Fix some test utils
Browse files Browse the repository at this point in the history
  • Loading branch information
hansottowirtz committed Jan 5, 2023
1 parent f204c05 commit cd07c2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stories/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ContextualStoryDecorator } from "./StoryWrapper";
import { createSpyableActions, delay, doneTrackerUtils } from "./common";
import { action } from "@storybook/addon-actions";

const { actions, actionsMockClear: actionsMockReset } = createSpyableActions({
const { actions, actionsMockClear } = createSpyableActions({
onDone: action("done"),
onAbort: action("abort"),
onError: action("error"),
Expand All @@ -30,7 +30,7 @@ export const InteractionTestNotPersisted: Meta = {

const canvas = within(canvasElement);
const { status, refresh } = await doneTrackerUtils(canvas);
actionsMockReset();
actionsMockClear();

const button = canvas.getByText("Click me", { selector: "button" });
fireEvent.click(button);
Expand All @@ -55,7 +55,7 @@ export const InteractionTestPersisted: Meta = {

const canvas = within(canvasElement);
const { status, refresh } = await doneTrackerUtils(canvas);
actionsMockReset();
actionsMockClear();

const button = canvas.getByText("Click me", { selector: "button" });
fireEvent.click(button);
Expand Down
File renamed without changes.

0 comments on commit cd07c2b

Please sign in to comment.