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('Progress', () => {
expect(wrapper.html()).toMatchSnapshot()
expect(() => wrapper.unmount()).not.toThrow()
})
it('should work with different types', () => {
const wrapper = mount(
<div>
@@ -16,34 +16,34 @@ describe('Progress', () => {
<Progress value={21} type="success" />
<Progress value={2} type="warning" />
<Progress value={1} type="error" />
</div>
</div>,
)
expect(wrapper.html()).toMatchSnapshot()
expect(() => wrapper.unmount()).not.toThrow()
})
it('should show different progress by maximum', () => {
const wrapper = mount(
<div>
<Progress value={59} max={60} />
<Progress value={21} max={50} />
</div>
</div>,
)
expect(wrapper.html()).toMatchSnapshot()
expect(() => wrapper.unmount()).not.toThrow()
})
it('should fixed', () => {
const wrapper = mount(
<div>
<Progress value={59} fixedTop />
<Progress value={21} fixedBottom />
</div>
</div>,
)
expect(wrapper.html()).toMatchSnapshot()
expect(() => wrapper.unmount()).not.toThrow()
})
it('should be render background-color with color prop', () => {
const colors = {
20: '#ccc',
@@ -53,10 +53,10 @@ describe('Progress', () => {
expect(wrapper.html()).toMatchSnapshot()
expect(() => wrapper.unmount()).not.toThrow()
})
it('should be ignore wrong colors', () => {
const colors = {
'qq': '#ccc',
qq: '#ccc',
10: '#111',
}
const wrapper = mount(<Progress value={59} colors={colors} />)