summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkInviteCode.stories.impl.ts
diff options
context:
space:
mode:
authorMarie <marie@kaifa.ch>2024-02-12 23:14:55 +0000
committerMarie <marie@kaifa.ch>2024-02-12 23:14:55 +0000
commit4007fbb8d8212f000e3959c95e306d22aa596566 (patch)
tree3d94993613b2bbd9f3836aa9c3504dbc05f0fc00 /packages/frontend/src/components/MkInviteCode.stories.impl.ts
parentmerge: fix: Update l-sushi.json5 to ensure the hashtag colour matches the mai... (diff)
parentfix: diff between NoteCreateService and NoteEditService (diff)
downloadsharkey-4007fbb8d8212f000e3959c95e306d22aa596566.tar.gz
sharkey-4007fbb8d8212f000e3959c95e306d22aa596566.tar.bz2
sharkey-4007fbb8d8212f000e3959c95e306d22aa596566.zip
merge: Merge Upstream Changes (!408)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/408 Approved-by: dakkar <dakkar@thenautilus.net> Approved-by: Amelia Yukii <amelia.yukii@shourai.de>
Diffstat (limited to 'packages/frontend/src/components/MkInviteCode.stories.impl.ts')
-rw-r--r--packages/frontend/src/components/MkInviteCode.stories.impl.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/frontend/src/components/MkInviteCode.stories.impl.ts b/packages/frontend/src/components/MkInviteCode.stories.impl.ts
index 2ea32dd3b6..2abe1a8770 100644
--- a/packages/frontend/src/components/MkInviteCode.stories.impl.ts
+++ b/packages/frontend/src/components/MkInviteCode.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 { userDetailed, inviteCode } from '../../.storybook/fakes.js';
import { commonHandlers } from '../../.storybook/mocks.js';
import MkInviteCode from './MkInviteCode.vue';
@@ -39,8 +39,8 @@ export const Default = {
msw: {
handlers: [
...commonHandlers,
- rest.post('/api/users/show', (req, res, ctx) => {
- return res(ctx.json(userDetailed(req.params.userId as string)));
+ http.post('/api/users/show', ({ params }) => {
+ return HttpResponse.json(userDetailed(params.userId as string));
}),
],
},