schlechtenburg/packages/heading/__tests__/heading.test.ts

17 lines
539 B
TypeScript
Raw Normal View History

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