From 15f54533159f5086b034cdb69c55fcc4de34b53d Mon Sep 17 00:00:00 2001 From: iamkun Date: Wed, 30 Mar 2022 14:38:11 +0800 Subject: [PATCH] update test --- components/date-picker/__tests__/DatePicker.test.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/date-picker/__tests__/DatePicker.test.js b/components/date-picker/__tests__/DatePicker.test.js index 0fa0006bb4..fdcd1555c5 100644 --- a/components/date-picker/__tests__/DatePicker.test.js +++ b/components/date-picker/__tests__/DatePicker.test.js @@ -5,6 +5,7 @@ import customParseFormat from 'dayjs/plugin/customParseFormat'; import MockDate from 'mockdate'; import DatePicker from '..'; import focusTest from '../../../tests/shared/focusTest'; +import 'dayjs/locale/mk'; // to test local in 'prop locale should works' test case dayjs.extend(customParseFormat); @@ -213,9 +214,7 @@ describe('DatePicker', () => { }, }); - const wrapper = mount( - , - ); + const wrapper = mount(); expect(wrapper.find('Trigger').prop('popupAlign')).toEqual(popupAlignDefault(['tl', 'bl'])); wrapper.setProps({ placement: 'bottomRight',