schlechtenburg/packages/layout/__tests__/layout.test.ts

17 lines
557 B
TypeScript

import { describe, expect, it } from 'vitest'
import { mount } from '@vue/test-utils';
import SbLayoutEdit from '../lib/edit';
import SbLayoutView from '../lib/view';
describe('@schlechtenburg/layout', () => {
it('edit should render', () => {
const edit = mount(SbLayoutEdit);
expect(edit.find('div.sb-layout').element).toBeTruthy();
expect(edit.find('div.sb-toolbar').element).toBeTruthy();
});
it('view should render', () => {
const edit = mount(SbLayoutView);
expect(edit.find('div.sb-layout').element).toBeTruthy();
});
});