ant-design/components/form/__tests__/index.test.js
偏右 6e3565b983 Add Form[hideRequiredMark] (#4500)
* Add Form[hideRequiredMark]

* omit hideRequiredMark

* Add test case for Form[hideRequiredMark]
2017-01-13 21:52:48 +08:00

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);
});
});