it("binds 'onboardingHelper.showActionPopover', 'onboardingHelper.hideActionPopover' and 'onboardingHelper.destroyActionPopover' event listener on eventHub",()=>{
spyOn(eventHub,'$on');
constwrapperX=shallowMount(component,{
propsData:props,
});
expect(eventHub.$on).toHaveBeenCalledWith(
'onboardingHelper.showActionPopover',
jasmine.any(Function),
);
expect(eventHub.$on).toHaveBeenCalledWith(
'onboardingHelper.hideActionPopover',
jasmine.any(Function),
);
expect(eventHub.$on).toHaveBeenCalledWith(
'onboardingHelper.destroyActionPopover',
jasmine.any(Function),
);
wrapperX.destroy();
});
});
describe('beforeDestroy',()=>{
it("unbinds 'showActionPopover', 'hideActionPopover' and 'destroyActionPopover' event handler",()=>{