style(prettier): format code style

This commit is contained in:
unix
2020-05-06 14:18:28 +08:00
parent cf8e277324
commit 112c826575
263 changed files with 4927 additions and 3992 deletions

View File

@@ -8,7 +8,7 @@ describe('Spacer', () => {
expect(wrapper.html()).toMatchSnapshot()
expect(() => wrapper.unmount()).not.toThrow()
})
it('should support x and y', () => {
const wrapper = mount(
<div>
@@ -16,12 +16,12 @@ describe('Spacer', () => {
<Spacer x={15} />
<Spacer y={15} />
<Spacer y={2} />
</div>
</div>,
)
expect(wrapper.html()).toMatchSnapshot()
expect(() => wrapper.unmount()).not.toThrow()
})
it('should work with float', () => {
const wrapper = mount(
<div>
@@ -29,12 +29,12 @@ describe('Spacer', () => {
<Spacer x={1.5} />
<Spacer y={0.1} />
<Spacer y={1.8} />
</div>
</div>,
)
expect(wrapper.html()).toMatchSnapshot()
expect(() => wrapper.unmount()).not.toThrow()
})
it('should work with inline mode', () => {
const wrapper = mount(<Spacer inline />)
expect(wrapper.html()).toMatchSnapshot()