@gitlab/ui
Version:
GitLab UI Components
17 lines (13 loc) • 360 B
JavaScript
import { shallowMount } from '@vue/test-utils';
import GlNavItem from './nav_item.vue';
describe('GlNavItem', () => {
let wrapper;
it('renders the text', () => {
wrapper = shallowMount(GlNavItem, {
slots: {
default: 'Hello, World!',
},
});
expect(wrapper.findComponent(GlNavItem).text()).toBe('Hello, World!');
});
});