mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-28 12:15:32 +08:00
style(prettier): format code style
This commit is contained in:
@@ -8,19 +8,19 @@ describe('Description', () => {
|
||||
expect(wrapper).toMatchSnapshot()
|
||||
expect(() => wrapper.unmount()).not.toThrow()
|
||||
})
|
||||
|
||||
|
||||
it('should render react-node on title', () => {
|
||||
let wrapper = mount(<Description title={<p>p</p>} />)
|
||||
expect(wrapper.find('p').length).not.toBe(0)
|
||||
|
||||
|
||||
wrapper = mount(<Description title={<h1>p</h1>} />)
|
||||
expect(wrapper.find('h1').length).not.toBe(0)
|
||||
})
|
||||
|
||||
|
||||
it('should render react-node on content', () => {
|
||||
let wrapper = mount(<Description content={<p>p</p>} />)
|
||||
expect(wrapper.find('p').length).not.toBe(0)
|
||||
|
||||
|
||||
wrapper = mount(<Description content={<h1>p</h1>} />)
|
||||
expect(wrapper.find('h1').length).not.toBe(0)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user