Skip to content

Commit

Permalink
improve comments in getProfile promise test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick Terrill committed May 30, 2024
1 parent 666dcff commit ac19751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/__tests__/useParallel-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand Down

0 comments on commit ac19751

Please sign in to comment.