Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf6d9765

Browse files
authored
fix(site): storybook: move spyOn to beforeEach (#18559)
Fixes:coder/internal#741
1 parentb5316d2 commitf6d9765

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
typeStory=StoryObj<typeofTroubleshooting>;
1616

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp