From b00bcde5483523b3443f487257c3d86c80e9f85e Mon Sep 17 00:00:00 2001 From: Kasper Peulen Date: Thu, 15 Aug 2024 10:43:03 +0200 Subject: [PATCH] Make a purposefull error --- app/note/[id]/page.stories.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/note/[id]/page.stories.tsx b/app/note/[id]/page.stories.tsx index 73b8531..4299f9a 100644 --- a/app/note/[id]/page.stories.tsx +++ b/app/note/[id]/page.stories.tsx @@ -83,7 +83,7 @@ export const LogoutShouldDeleteCookie: Story = { await expect(cookies().get(userCookieKey)?.value).toContain('storybookjs') await userEvent.click(await canvas.findByRole('button', { name: 'logout' })) await expectRedirect('/') - await expect(cookies().get(userCookieKey)).toBeUndefined() + await expect(cookies().get(userCookieKey)).toBeDefined() }, }