frequi_origin/tests/unit/ValuePair.spec.ts

13 lines
355 B
TypeScript

import { mount } from '@vue/test-utils';
import ValuePair from '@/components/ftbot/ValuePair.vue';
describe('ValuePair.vue', () => {
it('renders description when passed', () => {
const msg = 'Test description';
const wrapper = mount(ValuePair, {
propsData: { description: msg },
});
expect(wrapper.text()).toMatch(msg);
});
});