import { render } from 'enzyme';
import React from 'react';
import Field from '@ant-design/pro-field';
describe('Field Status', () => {
const statusList = [
'Success',
'Error',
'Processing',
'Default',
'Warning',
'success',
'error',
'processing',
'default',
'warning',
];
statusList.forEach((status) => {
it(`🥩 ${status} render`, async () => {
const html = render(
,
);
expect(html).toMatchSnapshot();
});
});
it(`🥩 red color render`, async () => {
const html = render(
,
);
expect(html).toMatchSnapshot();
});
});