From ac197513ba09ffebe53a2a343dc735f7cdb6703a Mon Sep 17 00:00:00 2001 From: Rick Terrill Date: Thu, 30 May 2024 17:27:43 -0500 Subject: [PATCH] improve comments in getProfile promise test --- packages/react/src/__tests__/useParallel-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/__tests__/useParallel-test.js b/packages/react/src/__tests__/useParallel-test.js index e9f332a..6dd9fa9 100644 --- a/packages/react/src/__tests__/useParallel-test.js +++ b/packages/react/src/__tests__/useParallel-test.js @@ -47,9 +47,9 @@ describe('The useParallel hook', () => { ) const { result } = renderHook(() => useParallel(), { wrapper }) - // wait to load await waitFor(() => expect(result.current).toMatchObject({ isLoaded: true })) act(() => { + // the getProfile Promise resolves with the user account fetched by the getProfile() callback in the Parallel client result.current.getProfile().then((profile) => { expect(profile).toMatchObject(TestAccount) })