test: add connection mock

This commit is contained in:
Acid Chicken (硫酸鶏) 2023-05-20 23:15:20 +09:00
parent 105f79c343
commit a91d32f2f7
No known key found for this signature in database
GPG Key ID: 3E87B98A3F6BAB99
1 changed files with 5 additions and 0 deletions

View File

@ -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',