chore: InputTable单测用例修复 (#7537)

This commit is contained in:
RUNZE LU 2023-07-21 08:55:52 +08:00 committed by GitHub
parent 2667ce67f0
commit 4bb0c71dd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,13 +136,15 @@ test('Renderer: input-table with default value column', async () => {
await wait(200);
expect(onSubmitCallbackFn).toHaveBeenCalledTimes(1);
expect(onSubmitCallbackFn.mock.calls[0][0]).toEqual({
table: [
{a: 'a1', b: 'b1', c: 'a1'},
{a: 'a2', b: 'b2', c: 'a2'},
{a: 'a3', b: 'b3', c: 'a3'}
]
});
expect(onSubmitCallbackFn.mock.calls[0][0]).toEqual(
expect.objectContaining({
table: [
{a: 'a1', b: 'b1', c: 'a1'},
{a: 'a2', b: 'b2', c: 'a2'},
{a: 'a3', b: 'b3', c: 'a3'}
]
})
);
}, 10000);
test('Renderer:input table add', async () => {