From a91d32f2f7cc633a59eb6aa8651c7685c9660b88 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, 20 May 2023 23:15:20 +0900 Subject: [PATCH] test: add connection mock --- .../src/widgets/server-metric/cpu-mem.stories.impl.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/frontend/src/widgets/server-metric/cpu-mem.stories.impl.ts b/packages/frontend/src/widgets/server-metric/cpu-mem.stories.impl.ts index 788265bfb..7340fa29f 100644 --- a/packages/frontend/src/widgets/server-metric/cpu-mem.stories.impl.ts +++ b/packages/frontend/src/widgets/server-metric/cpu-mem.stories.impl.ts @@ -1,4 +1,5 @@ /* eslint-disable @typescript-eslint/explicit-function-return-type */ +import { action } from '@storybook/addon-actions'; import { StoryObj } from '@storybook/vue3'; import cpu_mem from './cpu-mem.vue'; export const Default = { @@ -34,6 +35,10 @@ export const Default = { total: 1, }, }, + connection: { + on: action('on'), + send: action('send'), + }, }, parameters: { layout: 'centered',