test: fix failing tests

This commit is contained in:
2026-05-15 01:49:07 +03:00
parent 0bd78a871c
commit 1d1b5624a3

View File

@@ -47,13 +47,16 @@ vi.mock('@/components/BBCodeHelpDialog', () =>
}),
)
vi.mock('@/components/TemplateModal', () =>
createComponentMock('TemplateModal', {
vi.mock('@/components/TemplateModal', () => ({
__esModule: true,
__isTeleport: false,
default: {
name: 'TemplateModal',
template: '<div class="template-modal-mock" v-if="open" />',
props: ['open', 'editorContext'],
emits: ['update:open', 'insert'],
}),
)
},
}))
vi.mock('@icons/TextBox.vue', () => createIconMock('TextBoxIcon'))
vi.mock('@icons/ArrowDown.vue', () => createIconMock('ArrowDownIcon'))