diff options
Diffstat (limited to 'tests/unit/AppNavigation.spec.js')
-rw-r--r-- | tests/unit/AppNavigation.spec.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/AppNavigation.spec.js b/tests/unit/AppNavigation.spec.js index b7065746..ab962046 100644 --- a/tests/unit/AppNavigation.spec.js +++ b/tests/unit/AppNavigation.spec.js @@ -26,20 +26,20 @@ describe('AppNavigation.vue', () => { 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); }); }); |