chore(tests): fix type issue

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-01-07 18:29:42 +01:00
committed by Braks
parent da6183a570
commit 7c52db16d3
+3 -3
View File
@@ -28,12 +28,12 @@ import { VueFlow } from '@vue-flow/core'
import type { FlowProps } from '@vue-flow/core' import type { FlowProps } from '@vue-flow/core'
const mountVueFlow = (props?: FlowProps, attrs?: Record<string, any>) => { const mountVueFlow = (props?: FlowProps, attrs?: Record<string, any>) => {
cy.mount(VueFlow, { cy.mount(VueFlow as any, {
props: { props: {
id: 'test', id: 'test',
fitViewOnInit: true, fitViewOnInit: true,
...props, ...props,
}, } as FlowProps,
attrs: { attrs: {
key: 'flowy', key: 'flowy',
style: { style: {
@@ -41,7 +41,7 @@ const mountVueFlow = (props?: FlowProps, attrs?: Record<string, any>) => {
width: '100vw', width: '100vw',
}, },
...attrs, ...attrs,
}, } as Record<string, any>,
}) })
} }