mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-26 04:00:13 +08:00
6e3565b983
* Add Form[hideRequiredMark] * omit hideRequiredMark * Add test case for Form[hideRequiredMark]
13 lines
293 B
JavaScript
13 lines
293 B
JavaScript
import React from 'react';
|
|
import { shallow } from 'enzyme';
|
|
import Form from '..';
|
|
|
|
describe('Form', () => {
|
|
it('hideRequiredMark', () => {
|
|
const wrapper = shallow(
|
|
<Form hideRequiredMark />
|
|
);
|
|
expect(wrapper.hasClass('ant-form-hide-required-mark')).toBe(true);
|
|
});
|
|
});
|