chore: split function call (#8424)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { createApp } from 'vue';
|
||||
import { ImagePreview } from '../function-call';
|
||||
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();
|
||||
});
|
||||
Reference in New Issue
Block a user