Browse Source
* Add Form[hideRequiredMark] * omit hideRequiredMark * Add test case for Form[hideRequiredMark]pull/4585/merge
偏右
8 years ago
committed by
GitHub
5 changed files with 23 additions and 1 deletions
@ -0,0 +1,12 @@ |
|||||
|
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); |
||||
|
}); |
||||
|
}); |
Loading…
Reference in new issue