Resolve custom-event-name-casing lint warnings
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com>
Change-Id: I9eea4eac3b8cacc216fc9ad1011e51622622e75f
diff --git a/tests/unit/AppNavigation.spec.js b/tests/unit/AppNavigation.spec.js
index b706574..ab96204 100644
--- a/tests/unit/AppNavigation.spec.js
+++ b/tests/unit/AppNavigation.spec.js
@@ -26,20 +26,20 @@
expect(wrapper.element).toMatchSnapshot();
});
- it('Nav Overlay click should emit change:isNavigationOpen event', async () => {
+ it('Nav Overlay click should emit change-is-navigation-open event', async () => {
const rootWrapper = createWrapper(wrapper.vm.$root);
const navOverlay = wrapper.find('#nav-overlay');
navOverlay.trigger('click');
await wrapper.vm.$nextTick();
- expect(rootWrapper.emitted('change:isNavigationOpen')).toBeTruthy();
+ expect(rootWrapper.emitted('change-is-navigation-open')).toBeTruthy();
});
- it('toggle:navigation event should toggle isNavigation data prop value', async () => {
+ it('toggle-navigation event should toggle isNavigation data prop value', async () => {
const rootWrapper = createWrapper(wrapper.vm.$root);
wrapper.vm.isNavigationOpen = false;
- rootWrapper.vm.$emit('toggle:navigation');
+ rootWrapper.vm.$emit('toggle-navigation');
expect(wrapper.vm.isNavigationOpen).toBe(true);
- rootWrapper.vm.$emit('toggle:navigation');
+ rootWrapper.vm.$emit('toggle-navigation');
expect(wrapper.vm.isNavigationOpen).toBe(false);
});
});