Skip to content

Commit f6d9765

Browse files
authored
fix(site): storybook: move spyOn to beforeEach (#18559)
Fixes: coder/internal#741
1 parent b5316d2 commit f6d9765

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

site/src/pages/DeploymentSettingsPage/NotificationsPage/Troubleshooting.stories.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ export default meta;
1515
type Story = StoryObj<typeof Troubleshooting>;
1616

1717
export const TestNotification: Story = {
18-
play: async ({ canvasElement }) => {
18+
beforeEach() {
1919
spyOn(API, "postTestNotification").mockResolvedValue();
20+
},
21+
play: async ({ canvasElement }) => {
2022
const user = userEvent.setup();
2123
const canvas = within(canvasElement);
2224

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy