frequi_origin/tests/component/VaulePair.spec.ts

12 lines
397 B
TypeScript
Raw Permalink Normal View History

2024-04-13 11:02:41 +00:00
import ValuePair from '@/components/general/ValuePair.vue';
import { mount } from '@vue/test-utils';
import { describe, expect, it } from 'vitest';
describe('ValuePair.vue', () => {
it('Renders a message', async () => {
const msg = 'Test description';
const wrapper = mount(ValuePair, { props: { description: msg } });
expect(wrapper.find('label').text()).toContain(msg);
});
});