From 7be748eed7dff0612e800585ba48973cf9c874d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20=C5=BBegle=C5=84?= Date: Wed, 22 Jul 2020 15:29:21 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Krzysztof Wolski --- src/auth/AuthProvider.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/auth/AuthProvider.test.ts b/src/auth/AuthProvider.test.ts index 9b10fd6df..3ec9c9570 100644 --- a/src/auth/AuthProvider.test.ts +++ b/src/auth/AuthProvider.test.ts @@ -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);