mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
14 lines
453 B
TypeScript
14 lines
453 B
TypeScript
import { createApp } from 'vue';
|
|
import ImagePreview from '..';
|
|
import ImagePreviewComponent from '../ImagePreview';
|
|
|
|
test('should expose ImagePreviewComponent in ImagePreview.Component', () => {
|
|
expect(ImagePreview.Component.name).toEqual('van-image-preview');
|
|
});
|
|
|
|
test('should register component to app', () => {
|
|
const app = createApp(document.body);
|
|
app.use(ImagePreview);
|
|
expect(app.component(ImagePreviewComponent.name)).toBeTruthy();
|
|
});
|