add className test

This commit is contained in:
陈帅 2019-07-01 15:28:02 +08:00
parent 00bcb6928e
commit 9b8ccc4ee7

View File

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