diff options
author | Kushal Pandya <kushal@gitlab.com> | 2018-05-02 12:54:02 +0300 |
---|---|---|
committer | Kushal Pandya <kushal@gitlab.com> | 2018-05-02 12:54:02 +0300 |
commit | aa0a35a867ed2094da60042062e8f3d6000e3952 (patch) | |
tree | 61d075c222a08ae7fd5b8881f70556bc1f9503dd /spec | |
parent | de3194bf897540aae2187abf1ce56667f2889292 (diff) |
Consume `toggleSubscription` event directly from Subscriptions component
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/sidebar/sidebar_subscriptions_spec.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/javascripts/sidebar/sidebar_subscriptions_spec.js b/spec/javascripts/sidebar/sidebar_subscriptions_spec.js index 56a2543660b..9e437084224 100644 --- a/spec/javascripts/sidebar/sidebar_subscriptions_spec.js +++ b/spec/javascripts/sidebar/sidebar_subscriptions_spec.js @@ -3,7 +3,6 @@ import sidebarSubscriptions from '~/sidebar/components/subscriptions/sidebar_sub import SidebarMediator from '~/sidebar/sidebar_mediator'; import SidebarService from '~/sidebar/services/sidebar_service'; import SidebarStore from '~/sidebar/stores/sidebar_store'; -import eventHub from '~/sidebar/event_hub'; import mountComponent from 'spec/helpers/vue_mount_component_helper'; import Mock from './mock_data'; @@ -32,7 +31,7 @@ describe('Sidebar Subscriptions', function () { mediator, }); - eventHub.$emit('toggleSubscription'); + vm.onToggleSubscription(); expect(mediator.toggleSubscription).toHaveBeenCalled(); }); |