schlechtenburg/packages/paragraph/__tests__/paragraph.test.ts

17 lines
548 B
TypeScript
Raw Normal View History

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