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

17 lines
539 B
TypeScript

import { describe, expect, it } from 'vitest'
import { mount } from '@vue/test-utils';
import SbHeadingEdit from '../lib/edit';
import SbHeadingView from '../lib/view';
describe('@schlechtenburg/heading', () => {
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();
});
});