diff --git a/__tests__/api/client.test.tsx b/__tests__/api/client.test.tsx index 394f2bdc..a2431100 100644 --- a/__tests__/api/client.test.tsx +++ b/__tests__/api/client.test.tsx @@ -161,6 +161,51 @@ describe('onChangeClientState', () => { }); }); + describe('Callbacks', () => { + it('Verify that callback onload is triggered', async () => { + const onChange = vi.fn(); + let obj = { nested: { loaded: false, error: false } }; + + let onLoad = () => { + obj.nested.loaded = true; + }; + + const onError = () => { + obj.nested.error = true; + }; + + render( +
+ + Main Title +