mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 00:03: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 */
|
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
||||||
|
import { action } from '@storybook/addon-actions';
|
||||||
import { StoryObj } from '@storybook/vue3';
|
import { StoryObj } from '@storybook/vue3';
|
||||||
import cpu_mem from './cpu-mem.vue';
|
import cpu_mem from './cpu-mem.vue';
|
||||||
export const Default = {
|
export const Default = {
|
||||||
|
@ -34,6 +35,10 @@ export const Default = {
|
||||||
total: 1,
|
total: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
connection: {
|
||||||
|
on: action('on'),
|
||||||
|
send: action('send'),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
parameters: {
|
parameters: {
|
||||||
layout: 'centered',
|
layout: 'centered',
|
||||||
|
|
Loading…
Reference in a new issue