diff options
| author | Marie <marie@kaifa.ch> | 2024-02-09 19:22:06 +0100 |
|---|---|---|
| committer | Marie <marie@kaifa.ch> | 2024-02-09 19:22:06 +0100 |
| commit | 85355813ad07724a2fad4abdbf694d696482d439 (patch) | |
| tree | 79bbf9a76c17f4022754cb09a6db5b22b673d31a /packages/frontend/src/components/MkUserSetupDialog.Follow.stories.impl.ts | |
| parent | merge: more upstream changes (diff) | |
| parent | fix misskey-js version (diff) | |
| download | sharkey-85355813ad07724a2fad4abdbf694d696482d439.tar.gz sharkey-85355813ad07724a2fad4abdbf694d696482d439.tar.bz2 sharkey-85355813ad07724a2fad4abdbf694d696482d439.zip | |
merge: latest changes
Diffstat (limited to 'packages/frontend/src/components/MkUserSetupDialog.Follow.stories.impl.ts')
| -rw-r--r-- | packages/frontend/src/components/MkUserSetupDialog.Follow.stories.impl.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/frontend/src/components/MkUserSetupDialog.Follow.stories.impl.ts b/packages/frontend/src/components/MkUserSetupDialog.Follow.stories.impl.ts index 45c7da40ce..c1b380bd1b 100644 --- a/packages/frontend/src/components/MkUserSetupDialog.Follow.stories.impl.ts +++ b/packages/frontend/src/components/MkUserSetupDialog.Follow.stories.impl.ts @@ -5,7 +5,7 @@ /* eslint-disable @typescript-eslint/explicit-function-return-type */ import { StoryObj } from '@storybook/vue3'; -import { rest } from 'msw'; +import { HttpResponse, http } from 'msw'; import { commonHandlers } from '../../.storybook/mocks.js'; import { userDetailed } from '../../.storybook/fakes.js'; import MkUserSetupDialog_Follow from './MkUserSetupDialog.Follow.vue'; @@ -38,17 +38,17 @@ export const Default = { msw: { handlers: [ ...commonHandlers, - rest.post('/api/users', (req, res, ctx) => { - return res(ctx.json([ + http.post('/api/users', () => { + return HttpResponse.json([ userDetailed('44'), userDetailed('49'), - ])); + ]); }), - rest.post('/api/pinned-users', (req, res, ctx) => { - return res(ctx.json([ + http.post('/api/pinned-users', () => { + return HttpResponse.json([ userDetailed('44'), userDetailed('49'), - ])); + ]); }), ], }, |