UNPKG

@gitlab/ui

Version:
22 lines (18 loc) 476 B
import { mount } from '@vue/test-utils'; import GlNavbar from './navbar.vue'; describe('Navbar Component', () => { const propsData = { variant: 'dark', }; let wrapper; describe('Dark Navbar', () => { beforeEach(() => { wrapper = mount(GlNavbar, { propsData: { ...propsData, type: 'dark' }, }); }); it('should add the `navbar-dark` class', () => { expect(wrapper.find('.navbar-dark').exists()).toBe(true); }); }); });