Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
This commit is contained in:
parent
4913677f5f
commit
64cedf1eee
|
@ -191,10 +191,13 @@ describe('use composite image', () => {
|
|||
expect(composeSpy.mock.calls[0][1]).toBe(canvasMock);
|
||||
expect(composeSpy.mock.calls[0][2]).toBe(blocks);
|
||||
|
||||
await waitFor(() => {
|
||||
expect(onComposeImageSuccess).toHaveBeenCalledTimes(1);
|
||||
expect(onComposeImageSuccess).toHaveBeenCalledWith('compose success');
|
||||
});
|
||||
await waitFor(
|
||||
() => {
|
||||
expect(onComposeImageSuccess).toHaveBeenCalledTimes(1);
|
||||
expect(onComposeImageSuccess).toHaveBeenCalledWith('compose success');
|
||||
},
|
||||
{ timeout: 10000 }
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue