mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 19:42:54 +08:00
More tests
This commit is contained in:
parent
7958860c95
commit
c96805254f
@ -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"
|
||||
/>
|
||||
`;
|
||||
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user