diff --git a/test/VButton.spec.ts b/test/VButton.spec.ts new file mode 100644 index 0000000..f4dcced --- /dev/null +++ b/test/VButton.spec.ts @@ -0,0 +1,15 @@ +import { mount } from '@vue/test-utils' +import VButton from '@/components/button/VButton.vue' +import {test, expect, describe} from 'vitest' + +describe('VButton', () => { + test('Displays button label', () => { + const wrapper = mount(VButton, { + props: { + label: 'button label', + title: 'button' + } + }) + expect(wrapper.text()).toContain('button label') + }) +})