mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
add className test
This commit is contained in:
parent
00bcb6928e
commit
9b8ccc4ee7
@ -47,4 +47,9 @@ describe('Progress', () => {
|
||||
const wrapper = mount(<Result status="404" />);
|
||||
expect(wrapper.find('.ant-result-extra')).toHaveLength(0);
|
||||
});
|
||||
|
||||
it('🙂 result should support className', () => {
|
||||
const wrapper = mount(<Result status="404" title="404" className="my-result" />);
|
||||
expect(wrapper.find('.ant-result.my-result')).toHaveLength(1);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user