From 8ddc222908661b3f9d60bbbf20f7647015faca0e Mon Sep 17 00:00:00 2001 From: w2xi <43wangxi@gmail.com> Date: Wed, 10 Apr 2024 22:20:54 +0800 Subject: [PATCH] test(components): [space] add slot case --- packages/fighting-design/space/__test__/space.spec.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/fighting-design/space/__test__/space.spec.ts b/packages/fighting-design/space/__test__/space.spec.ts index 46b1dfd322..e732a0ba63 100644 --- a/packages/fighting-design/space/__test__/space.spec.ts +++ b/packages/fighting-design/space/__test__/space.spec.ts @@ -4,6 +4,13 @@ import { FSpace } from '../index' import { FIGHTING_SIZE } from '../../_tokens' describe('FSpace', () => { + test('should render slot', () => { + const wrapper = mount(FSpace, { + slots: { default: '123' } + }) + expect(wrapper.text()).toContain('123') + }) + test('class', () => { const wrapper = mount(FSpace, { slots: { default: '123' }