Apply suggestions from code review

Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
This commit is contained in:
Dominik Żegleń 2020-07-22 15:29:21 +02:00 committed by dominik-zeglen
parent 79ed2a3c27
commit 7be748eed7

View file

@ -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);