blob: 37290f67932d3d6821e8848e6da0098375554a84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import { mount, createLocalVue } from '@vue/test-utils';
import InfoTooltip from '@/components/Global/InfoTooltip';
import { BootstrapVue } from 'bootstrap-vue';
const localVue = createLocalVue();
localVue.use(BootstrapVue);
describe('InfoTooltip.vue', () => {
const wrapper = mount(InfoTooltip, {
localVue,
propsData: {
title: 'A tooltip test title',
},
mocks: {
$t: (key) => key,
},
});
it('should exist', () => {
expect(wrapper.exists()).toBe(true);
});
it('should render correctly', () => {
expect(wrapper.element).toMatchSnapshot();
});
});
|