17 lines
548 B
TypeScript
17 lines
548 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import { mount } from '@vue/test-utils';
|
|
import SbParagraphEdit from '../lib/edit';
|
|
import SbParagraphView from '../lib/view';
|
|
|
|
describe('@schlechtenburg/paragraph', () => {
|
|
it('edit should render', () => {
|
|
const edit = mount(SbParagraphEdit);
|
|
expect(edit.find('p').element).toBeTruthy();
|
|
expect(edit.find('div.sb-toolbar').element).toBeTruthy();
|
|
});
|
|
it('view should render', () => {
|
|
const edit = mount(SbParagraphView);
|
|
expect(edit.find('p').element).toBeTruthy();
|
|
});
|
|
});
|