Skip to content

Commit

Permalink
Merge pull request #314 from CBIIT/AuthCTX-fix-v2
Browse files Browse the repository at this point in the history
fix: AuthCtx expectation failing
  • Loading branch information
Alejandro-Vega authored Mar 18, 2024
2 parents 03ce8d2 + da561d2 commit 160a7b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Contexts/AuthContext.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ describe("AuthContext > AuthProvider Tests", () => {

await waitFor(() => expect(screen.getByTestId("isLoggedIn").textContent).toEqual("false"));

expect(screen.getByTestId("isLoggedIn").textContent).toEqual("false");
expect(localStorage.getItem("userDetails")).toBeNull();
await waitFor(() => {
expect(localStorage.getItem("userDetails")).toBeNull();
}, { timeout: 1000 });
});
});

0 comments on commit 160a7b4

Please sign in to comment.