schlechtenburg/packages/image/__tests__/image.test.ts

17 lines
535 B
TypeScript

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