mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
chore: InputTable单测用例修复 (#7537)
This commit is contained in:
parent
2667ce67f0
commit
4bb0c71dd1
@ -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 () => {
|
||||
|
Loading…
Reference in New Issue
Block a user