test: Added button label display test

This commit is contained in:
Paul Valerie GOMA 2025-07-19 03:05:42 +02:00
parent ff7563c828
commit 3304e34fef

15
test/VButton.spec.ts Normal file
View File

@ -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')
})
})