Skip to content

Commit

Permalink
Merge pull request #457 from w2xi/test-components/aside
Browse files Browse the repository at this point in the history
test(components): [aside] cover remaining props
  • Loading branch information
Tyh2001 authored Apr 10, 2024
2 parents e8cb65b + 716acfb commit b5c5007
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/fighting-design/aside/__test__/aside.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@ describe('f-aside', () => {
expect(wrapper.attributes('style')).toContain('--aside-width: 200px')
})

test('padding', () => {
const wrapper = mount(FAside, {
props: { padding: '10px' }
})
expect(wrapper.attributes('style')).toContain('--aside-padding: 10px')
})

test('padding', () => {
const wrapper = mount(FAside, {
props: { padding: 10 }
})
expect(wrapper.attributes('style')).toContain('--aside-padding: 10px')
})

test('background', () => {
const wrapper = mount(FAside, {
props: { background: 'red' }
Expand Down

0 comments on commit b5c5007

Please sign in to comment.