frequi_origin/tests/unit/ValuePair.spec.ts

13 lines
357 B
TypeScript
Raw Normal View History

2020-11-10 19:52:39 +00:00
import { mount } from '@vue/test-utils';
2021-03-10 15:35:14 +00:00
import ValuePair from '@/components/general/ValuePair.vue';
2020-11-10 19:52:39 +00:00
describe('ValuePair.vue', () => {
it('renders description when passed', () => {
const msg = 'Test description';
const wrapper = mount(ValuePair, {
propsData: { description: msg },
});
expect(wrapper.text()).toMatch(msg);
});
});