From 225a8e11a9f50ef3075b7c671aff50b207c0d6e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Sat, 25 Mar 2023 20:19:20 +0900 Subject: [PATCH] docs: fix --- CONTRIBUTING.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7f8ed0922..bcd62f9cb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -268,18 +268,14 @@ import MyComponent from './MyComponent.vue'; void MyComponent; ``` -You can use msw to mock API requests in the storybook. Creating a `MyComponent.stories.msw.ts` file and add the following line to the file. +You can use msw to mock API requests in the storybook. Creating a `MyComponent.stories.msw.ts` file to define the mock handlers. ```ts import { rest } from 'msw'; export const handlers = [ rest.post('/api/notes/timeline', (req, res, ctx) => { return res( - ctx.json({ - notes: [], - users: [], - hasNext: false, - }) + ctx.json([]), ); }), ];