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

17 lines
535 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 SbImageEdit from '../lib/edit';
import SbImageView from '../lib/view';
2020-12-30 13:34:23 +00:00
describe('@schlechtenburg/image', () => {
2024-10-09 13:38:26 +00:00
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();
});
2020-12-30 13:34:23 +00:00
});