diff --git a/docs/src/App.vue b/docs/src/App.vue index b75758b..5b61313 100755 --- a/docs/src/App.vue +++ b/docs/src/App.vue @@ -1,6 +1,6 @@ - - - - diff --git a/docs/src/components/Title.vue b/docs/src/components/Title.vue new file mode 100644 index 0000000..0a1ad2b --- /dev/null +++ b/docs/src/components/Title.vue @@ -0,0 +1,27 @@ + + + + + diff --git a/docs/src/components/__tests__/HelloWorld.spec.ts b/docs/src/components/__tests__/HelloWorld.spec.ts deleted file mode 100644 index 2533202..0000000 --- a/docs/src/components/__tests__/HelloWorld.spec.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { describe, it, expect } from 'vitest' - -import { mount } from '@vue/test-utils' -import HelloWorld from '../HelloWorld.vue' - -describe('HelloWorld', () => { - it('renders properly', () => { - const wrapper = mount(HelloWorld, { props: { msg: 'Hello Vitest' } }) - expect(wrapper.text()).toContain('Hello Vitest') - }) -}) diff --git a/docs/src/components/__tests__/Title.spec.ts b/docs/src/components/__tests__/Title.spec.ts new file mode 100644 index 0000000..bb87218 --- /dev/null +++ b/docs/src/components/__tests__/Title.spec.ts @@ -0,0 +1,11 @@ +import { describe, it, expect } from 'vitest' + +import { mount } from '@vue/test-utils' +import Title from '../Title.vue' + +describe('Title', () => { + it('renders properly', () => { + const wrapper = mount(Title, { props: { title: 'VueTechsLogos' } }) + expect(wrapper.text()).toContain('VueTechsLogos') + }) +})