diff --git a/src/components/wt-notifications-bar/__tests__/WtNotificationsBar.spec.js b/src/components/wt-notifications-bar/__tests__/WtNotificationsBar.spec.js index 5ea050ce..6c386ea4 100644 --- a/src/components/wt-notifications-bar/__tests__/WtNotificationsBar.spec.js +++ b/src/components/wt-notifications-bar/__tests__/WtNotificationsBar.spec.js @@ -15,7 +15,7 @@ describe('WtNotificationsBar', () => { const wrapper = shallowMount(WtNotificationsBar, { global: { provide: { $eventBus: eventBus } }, }); - wrapper.vm.$eventBus.$emit('notification', { + eventBus.$emit('notification', { type: 'error', text: 'error', }); @@ -27,7 +27,7 @@ describe('WtNotificationsBar', () => { const wrapper = shallowMount(WtNotificationsBar, { global: { provide: { $eventBus: eventBus } }, }); - wrapper.vm.$eventBus.$emit('notification', { + eventBus.$emit('notification', { type: 'error', text: 'error', }); @@ -42,7 +42,7 @@ describe('WtNotificationsBar', () => { global: { provide: { $eventBus: eventBus } }, data: () => ({ notificationDuration: 100 }), }); - wrapper.vm.$eventBus.$emit('notification', { + eventBus.$emit('notification', { type: 'error', text: 'error', }); diff --git a/src/components/wt-notifications-bar/wt-notifications-bar.vue b/src/components/wt-notifications-bar/wt-notifications-bar.vue index 681b91bb..bff02a45 100644 --- a/src/components/wt-notifications-bar/wt-notifications-bar.vue +++ b/src/components/wt-notifications-bar/wt-notifications-bar.vue @@ -17,22 +17,29 @@