From 3304e34fefdd7131e208109d0353439c9d494576 Mon Sep 17 00:00:00 2001 From: Paul Valerie GOMA Date: Sat, 19 Jul 2025 03:05:42 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20test:=20Added=20button=20label=20di?= =?UTF-8?q?splay=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/VButton.spec.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/VButton.spec.ts 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') + }) +})