Resolve custom-event-name-casing lint warnings
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com>
Change-Id: I9eea4eac3b8cacc216fc9ad1011e51622622e75f
diff --git a/tests/unit/AppHeader.spec.js b/tests/unit/AppHeader.spec.js
index 6d359c8..1a4075f 100644
--- a/tests/unit/AppHeader.spec.js
+++ b/tests/unit/AppHeader.spec.js
@@ -44,11 +44,11 @@
expect(wrapper.emitted('refresh')).toBeTruthy();
});
- it('nav-trigger button click should emit toggle:navigation event', async () => {
+ it('nav-trigger button click should emit toggle-navigation event', async () => {
const rootWrapper = createWrapper(wrapper.vm.$root);
wrapper.get('#app-header-trigger').trigger('click');
await wrapper.vm.$nextTick();
- expect(rootWrapper.emitted('toggle:navigation')).toBeTruthy();
+ expect(rootWrapper.emitted('toggle-navigation')).toBeTruthy();
});
it('logout button should dispatch authentication/logout', async () => {
@@ -59,7 +59,7 @@
it('change:isNavigationOpen event should set isNavigationOpen prop to false', async () => {
const rootWrapper = createWrapper(wrapper.vm.$root);
- rootWrapper.vm.$emit('change:isNavigationOpen', false);
+ rootWrapper.vm.$emit('change-is-navigation-open', false);
await rootWrapper.vm.$nextTick();
expect(wrapper.vm.isNavigationOpen).toEqual(false);
});