[Improvement] Toast: support Vue.use to register (#690)
This commit is contained in:
@@ -54,4 +54,9 @@ describe('ImagePreview', () => {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('register component', () => {
|
||||
Vue.use(ImagePreview);
|
||||
expect(!!Vue.component('van-image-preview')).to.be.true;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user