diff --git a/test/components/base/BaseText.spec.ts b/test/components/base/BaseText.spec.ts new file mode 100644 index 0000000..1f1af1c --- /dev/null +++ b/test/components/base/BaseText.spec.ts @@ -0,0 +1,18 @@ +import { BaseText } from '#components' +import { mount } from '@vue/test-utils' +import { describe, expect, it } from 'vitest' + +describe('component: BaseText', () => { + describe('usage', () => { + it('should show default slot', async () => { + const component = mount(BaseText, { + slots: { + default: () => 'Default Slot', + }, + }) + expect(component.text()).toMatchInlineSnapshot( + '"Default Slot"', + ) + }) + }) +})