blob: 2d7e74f44e7f8564a2125fda53b8fb549e2a7078 [file] [log] [blame]
Ed Tanous7d6b44c2024-03-23 14:56:34 -07001import { mount } from '@vue/test-utils';
SurenNeware6b426782020-12-31 20:46:40 +05302import InfoTooltip from '@/components/Global/InfoTooltip';
3
Derick Montague7def3242021-01-06 23:38:11 -06004process.env.BOOTSTRAP_VUE_NO_WARN = true;
SurenNeware6b426782020-12-31 20:46:40 +05305
6describe('InfoTooltip.vue', () => {
7 const wrapper = mount(InfoTooltip, {
SurenNeware6b426782020-12-31 20:46:40 +05308 propsData: {
9 title: 'A tooltip test title',
10 },
11 mocks: {
12 $t: (key) => key,
13 },
14 });
15 it('should exist', () => {
16 expect(wrapper.exists()).toBe(true);
17 });
SurenNeware6b426782020-12-31 20:46:40 +053018 it('should render correctly', () => {
19 expect(wrapper.element).toMatchSnapshot();
20 });
21});