@gitlab/ui
Version:
GitLab UI Components
24 lines (19 loc) • 485 B
JavaScript
import { shallowMount } from '@vue/test-utils';
import GlNav from './nav.vue';
import GlNavItem from './nav_item.vue';
describe('GlNav', () => {
let wrapper;
afterEach(() => {
wrapper.destroy();
});
describe('Nav style', () => {
it('renders slot content', () => {
wrapper = shallowMount(GlNav, {
slots: {
default: [GlNavItem, GlNavItem],
},
});
expect(wrapper.findAll(GlNavItem).exists()).toBeTruthy();
});
});
});