diff options
| author | zyoshoka <107108195+zyoshoka@users.noreply.github.com> | 2024-02-08 13:28:49 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-08 13:28:49 +0900 |
| commit | 5299d17060d72f1a81edffccedff2f1c78a9c520 (patch) | |
| tree | 68ab9fc17a2c0336d06459d75a7625570c55712c /packages/frontend/src/components/MkAbuseReportWindow.stories.impl.ts | |
| parent | Fix: Summaly proxy利用時にプレイヤーが動作しないことがあ... (diff) | |
| download | misskey-5299d17060d72f1a81edffccedff2f1c78a9c520.tar.gz misskey-5299d17060d72f1a81edffccedff2f1c78a9c520.tar.bz2 misskey-5299d17060d72f1a81edffccedff2f1c78a9c520.zip | |
test(frontend): migrate MSW in Storybook to v2 (#13195)
Diffstat (limited to 'packages/frontend/src/components/MkAbuseReportWindow.stories.impl.ts')
| -rw-r--r-- | packages/frontend/src/components/MkAbuseReportWindow.stories.impl.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/frontend/src/components/MkAbuseReportWindow.stories.impl.ts b/packages/frontend/src/components/MkAbuseReportWindow.stories.impl.ts index dc842b3d1b..771452cb5f 100644 --- a/packages/frontend/src/components/MkAbuseReportWindow.stories.impl.ts +++ b/packages/frontend/src/components/MkAbuseReportWindow.stories.impl.ts @@ -6,7 +6,7 @@ /* eslint-disable @typescript-eslint/explicit-function-return-type */ import { action } from '@storybook/addon-actions'; import { StoryObj } from '@storybook/vue3'; -import { rest } from 'msw'; +import { HttpResponse, http } from 'msw'; import { userDetailed } from '../../.storybook/fakes.js'; import { commonHandlers } from '../../.storybook/mocks.js'; import MkAbuseReportWindow from './MkAbuseReportWindow.vue'; @@ -44,9 +44,9 @@ export const Default = { msw: { handlers: [ ...commonHandlers, - rest.post('/api/users/report-abuse', async (req, res, ctx) => { - action('POST /api/users/report-abuse')(await req.json()); - return res(ctx.json({})); + http.post('/api/users/report-abuse', async ({ request }) => { + action('POST /api/users/report-abuse')(await request.json()); + return HttpResponse.json({}); }), ], }, |