More tests

This commit is contained in:
Wei Zhu 2018-06-13 14:19:22 +08:00 committed by 偏右
parent 7958860c95
commit c96805254f
2 changed files with 10 additions and 0 deletions

View File

@ -8,3 +8,10 @@ exports[`Tag can be controlled by visible 1`] = `
`;
exports[`Tag can be controlled by visible 2`] = `null`;
exports[`Tag can be controlled by visible 3`] = `
<div
class="ant-tag"
data-show="true"
/>
`;

View File

@ -47,5 +47,8 @@ describe('Tag', () => {
wrapper.setProps({ visible: false });
jest.runAllTimers();
expect(wrapper.render()).toMatchSnapshot();
wrapper.setProps({ visible: true });
jest.runAllTimers();
expect(wrapper.render()).toMatchSnapshot();
});
});