2024-10-09 14:43:40 +02:00
|
|
|
import { describe, expect, it } from 'vitest'
|
|
|
|
import { mount } from '@vue/test-utils';
|
2024-10-09 15:38:26 +02:00
|
|
|
import SbParagraphEdit from '../lib/edit';
|
|
|
|
import SbParagraphView from '../lib/view';
|
2020-12-30 14:34:23 +01:00
|
|
|
|
|
|
|
describe('@schlechtenburg/paragraph', () => {
|
2024-10-09 14:43:40 +02:00
|
|
|
it('edit should render', () => {
|
2024-10-09 15:38:26 +02:00
|
|
|
const edit = mount(SbParagraphEdit);
|
|
|
|
expect(edit.find('p').element).toBeTruthy();
|
|
|
|
expect(edit.find('div.sb-toolbar').element).toBeTruthy();
|
2024-10-09 14:43:40 +02:00
|
|
|
});
|
|
|
|
it('view should render', () => {
|
2024-10-09 15:38:26 +02:00
|
|
|
const edit = mount(SbParagraphView);
|
|
|
|
expect(edit.find('p').element).toBeTruthy();
|
2024-10-09 14:43:40 +02:00
|
|
|
});
|
2020-12-30 14:34:23 +01:00
|
|
|
});
|