16 lines
392 B
TypeScript
16 lines
392 B
TypeScript
|
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')
|
||
|
})
|
||
|
})
|