mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 04:53:09 +02:00
test: add connection mock
This commit is contained in:
parent
105f79c343
commit
a91d32f2f7
1 changed files with 5 additions and 0 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue