Apply suggestions from code review
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
This commit is contained in:
parent
79ed2a3c27
commit
7be748eed7
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ describe("User", () => {
|
|||
const hook = renderAuthProvider(apolloClient);
|
||||
|
||||
await act(() =>
|
||||
hook.current.login(credentials.email, credentials.password + "1")
|
||||
hook.current.login(credentials.email, "NotAValidPassword123!")
|
||||
);
|
||||
expect(hook.current.userContext).toBe(null);
|
||||
|
||||
|
@ -65,7 +65,7 @@ describe("User", () => {
|
|||
});
|
||||
|
||||
it("will not be logged if has invalid token", async done => {
|
||||
setAuthToken(credentials.token + "1", false);
|
||||
setAuthToken("NotAToken", false);
|
||||
const hook = renderAuthProvider(apolloClient);
|
||||
|
||||
await act(() => hook.current.autologinPromise.current);
|
||||
|
|
Loading…
Reference in a new issue