blob: 6b9e1107e76ccaebc029ef3b2bcddc2603c94047 [file] [log] [blame]
SurenNeware6b426782020-12-31 20:46:40 +05301import { mount, createLocalVue } from '@vue/test-utils';
2import InfoTooltip from '@/components/Global/InfoTooltip';
Derick Montaguee88b8162021-01-06 23:33:14 -06003import { BootstrapVue } from 'bootstrap-vue';
SurenNeware6b426782020-12-31 20:46:40 +05304
Derick Montague7def3242021-01-06 23:38:11 -06005process.env.BOOTSTRAP_VUE_NO_WARN = true;
SurenNeware6b426782020-12-31 20:46:40 +05306const localVue = createLocalVue();
Derick Montaguee88b8162021-01-06 23:33:14 -06007localVue.use(BootstrapVue);
SurenNeware6b426782020-12-31 20:46:40 +05308
9describe('InfoTooltip.vue', () => {
10 const wrapper = mount(InfoTooltip, {
11 localVue,
12 propsData: {
13 title: 'A tooltip test title',
14 },
15 mocks: {
16 $t: (key) => key,
17 },
18 });
19 it('should exist', () => {
20 expect(wrapper.exists()).toBe(true);
21 });
SurenNeware6b426782020-12-31 20:46:40 +053022 it('should render correctly', () => {
23 expect(wrapper.element).toMatchSnapshot();
24 });
25});