From 0dcc55df83b219706241b323862d0e431c68ea3e Mon Sep 17 00:00:00 2001 From: lucasferreiralimax Date: Wed, 7 Feb 2024 17:33:21 -0300 Subject: [PATCH] test(unit): adjustment specs for tests --- docs/src/__tests__/App.spec.ts | 11 +++++++++++ docs/src/{components => }/__tests__/Title.spec.ts | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 docs/src/__tests__/App.spec.ts rename docs/src/{components => }/__tests__/Title.spec.ts (86%) diff --git a/docs/src/__tests__/App.spec.ts b/docs/src/__tests__/App.spec.ts new file mode 100644 index 0000000..1977bdb --- /dev/null +++ b/docs/src/__tests__/App.spec.ts @@ -0,0 +1,11 @@ +import { describe, it, expect } from 'vitest' + +import { mount } from '@vue/test-utils' +import App from '@/App.vue' + +describe('App', () => { + it('renders properly', () => { + const wrapper = mount(App) + expect(wrapper.exists()).toBeTruthy() + }) +}) diff --git a/docs/src/components/__tests__/Title.spec.ts b/docs/src/__tests__/Title.spec.ts similarity index 86% rename from docs/src/components/__tests__/Title.spec.ts rename to docs/src/__tests__/Title.spec.ts index bb87218..1a69177 100644 --- a/docs/src/components/__tests__/Title.spec.ts +++ b/docs/src/__tests__/Title.spec.ts @@ -1,7 +1,7 @@ import { describe, it, expect } from 'vitest' import { mount } from '@vue/test-utils' -import Title from '../Title.vue' +import Title from '@/components/Title.vue' describe('Title', () => { it('renders properly', () => {