Skip to content

Commit 89778de

Browse files
committed
fix story
1 parent 0aa51d7 commit 89778de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/hooks/useLocalStorage/useLocalStorage.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ type Story = StoryObj;
5252
export const Default: Story = {
5353
play: async ({ canvas }) => {
5454
const [currentValue, newValueInput] = canvas.getAllByRole("textbox");
55-
await expect(currentValue).toHaveValue("initial");
55+
await expect(currentValue).toHaveValue("null");
5656

5757
await userEvent.clear(newValueInput);
5858
await userEvent.type(newValueInput, "saved-value");
@@ -62,6 +62,6 @@ export const Default: Story = {
6262
await expect(currentValue).toHaveValue("saved-value");
6363

6464
await userEvent.click(removeButton);
65-
await expect(currentValue).toHaveValue("initial");
65+
await expect(currentValue).toHaveValue("null");
6666
},
6767
};

0 commit comments

Comments
 (0)