mirror of
https://github.com/coder/coder.git
synced 2025-07-21 01:28:49 +00:00
fix(site): storybook: move spyOn to beforeEach (#18559)
Fixes: https://github.com/coder/internal/issues/741
This commit is contained in:
@ -15,8 +15,10 @@ export default meta;
|
||||
type Story = StoryObj<typeof Troubleshooting>;
|
||||
|
||||
export const TestNotification: Story = {
|
||||
play: async ({ canvasElement }) => {
|
||||
beforeEach() {
|
||||
spyOn(API, "postTestNotification").mockResolvedValue();
|
||||
},
|
||||
play: async ({ canvasElement }) => {
|
||||
const user = userEvent.setup();
|
||||
const canvas = within(canvasElement);
|
||||
|
||||
|
Reference in New Issue
Block a user