✅ test: Added button label display test
This commit is contained in:
parent
ff7563c828
commit
3304e34fef
15
test/VButton.spec.ts
Normal file
15
test/VButton.spec.ts
Normal 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')
|
||||||
|
})
|
||||||
|
})
|
Loading…
Reference in New Issue
Block a user