Ed Tanous | 7d6b44c | 2024-03-23 14:56:34 -0700 | [diff] [blame^] | 1 | import { mount } from '@vue/test-utils'; |
SurenNeware | 6b42678 | 2020-12-31 20:46:40 +0530 | [diff] [blame] | 2 | import InfoTooltip from '@/components/Global/InfoTooltip'; |
| 3 | |
Derick Montague | 7def324 | 2021-01-06 23:38:11 -0600 | [diff] [blame] | 4 | process.env.BOOTSTRAP_VUE_NO_WARN = true; |
SurenNeware | 6b42678 | 2020-12-31 20:46:40 +0530 | [diff] [blame] | 5 | |
| 6 | describe('InfoTooltip.vue', () => { |
| 7 | const wrapper = mount(InfoTooltip, { |
SurenNeware | 6b42678 | 2020-12-31 20:46:40 +0530 | [diff] [blame] | 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 | }); |
SurenNeware | 6b42678 | 2020-12-31 20:46:40 +0530 | [diff] [blame] | 18 | it('should render correctly', () => { |
| 19 | expect(wrapper.element).toMatchSnapshot(); |
| 20 | }); |
| 21 | }); |