8000 fix(site): storybook: move spyOn to beforeEach (#18559) · coder/coder@f6d9765 · GitHub
[go: up one dir, main page]

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)
0