xref: /openbmc/webui-vue/tests/unit/Global/InfoTooltip.spec.js (revision 7d6b44cb263da09e575c7cb28cab88c1eb339c7b)
1import { mount } from '@vue/test-utils';
2import InfoTooltip from '@/components/Global/InfoTooltip';
3
4process.env.BOOTSTRAP_VUE_NO_WARN = true;
5
6describe('InfoTooltip.vue', () => {
7  const wrapper = mount(InfoTooltip, {
8    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  });
18  it('should render correctly', () => {
19    expect(wrapper.element).toMatchSnapshot();
20  });
21});
22