fix: 单测问题修复 (#6107)

* fix: 单测问题修复

* fix: 单测问题修复
This commit is contained in:
sansiro 2023-01-31 11:47:05 +08:00 committed by GitHub
parent 000d05aa56
commit ff64f0345c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -100,7 +100,8 @@ test('Renderer:inputMonth with dynamic minDate & maxDate', async () => {
const items = container.querySelectorAll('.cxd-DatePicker');
expect(items.length).toBe(2);
const [start, end] = items;
const start = items[0];
const end = items[1];
fireEvent.click(end);

View File

@ -117,7 +117,7 @@ test('Renderer:InputSubForm with multiple & maxLength & btnLabel', async () => {
})
);
async function addItem(val1, val2) {
async function addItem(val1: string, val2: string) {
fireEvent.click(getByText('新增一项'));
const inputs = baseElement.querySelectorAll(