UNPKG

@gitlab/ui

Version:
29 lines (23 loc) 619 B
import { shallowMount } from '@vue/test-utils'; import { BCarousel } from 'bootstrap-vue'; import Carousel from './carousel.vue'; describe('Carousel component', () => { const collapseId = 'collapse-id'; let wrapper; const createWrapper = propsData => { wrapper = shallowMount(Carousel, { propsData }); }; describe('default', () => { beforeEach(() => { createWrapper({ id: collapseId, }); }); afterEach(() => { wrapper.destroy(); }); it('renders a BCarousel component', () => { expect(wrapper.find(BCarousel).exists()).toBe(true); }); }); });