summaryrefslogtreecommitdiff
path: root/tests/unit/Global/InfoTooltip.spec.js
blob: 2d7e74f44e7f8564a2125fda53b8fb549e2a7078 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { mount } from '@vue/test-utils';
import InfoTooltip from '@/components/Global/InfoTooltip';

process.env.BOOTSTRAP_VUE_NO_WARN = true;

describe('InfoTooltip.vue', () => {
  const wrapper = mount(InfoTooltip, {
    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();
  });
});