mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
fix: Animated default set (#37642)
* fix: Animated default set * test: Update test case
This commit is contained in:
parent
c15bdcf1dd
commit
f7782a05a9
@ -14,10 +14,12 @@ describe('Tabs.Animated', () => {
|
||||
it('boolean: true', () => {
|
||||
const { result } = renderHook(() => useAnimateConfig('test', true));
|
||||
|
||||
expect(result.current).toEqual({
|
||||
inkBar: true,
|
||||
tabPane: false,
|
||||
});
|
||||
expect(result.current).toEqual(
|
||||
expect.objectContaining({
|
||||
inkBar: true,
|
||||
tabPane: true,
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
it('config', () => {
|
||||
|
@ -26,7 +26,7 @@ export default function useAnimateConfig(
|
||||
} else if (animated === true) {
|
||||
mergedAnimated = {
|
||||
inkBar: true,
|
||||
tabPane: false,
|
||||
tabPane: true,
|
||||
};
|
||||
} else {
|
||||
mergedAnimated = {
|
||||
|
Loading…
Reference in New Issue
Block a user