mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-23 15:08:34 +08:00
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);
|
||
|
});
|
||
|
});
|