Skip to content

Commit

Permalink
Merge pull request #458 from w2xi/test-components/space
Browse files Browse the repository at this point in the history
test(components): [space] add slot case
  • Loading branch information
Tyh2001 authored Apr 10, 2024
2 parents b5c5007 + 8ddc222 commit a0da3ed
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/fighting-design/space/__test__/space.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
Expand Down

0 comments on commit a0da3ed

Please sign in to comment.