[bugfix] Toast: edundant instance when sync called multil times
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import Vue from 'vue';
|
||||
import Toast from '..';
|
||||
import ToastVue from '../Toast';
|
||||
import { transitionStub, later } from '../../../test/utils';
|
||||
|
||||
transitionStub();
|
||||
@@ -86,3 +88,8 @@ test('onClose callback', () => {
|
||||
Toast.allowMultiple(false);
|
||||
expect(onClose).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
|
||||
test('register component', () => {
|
||||
Vue.use(Toast);
|
||||
expect(Vue.component(ToastVue.name)).toBeTruthy();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user