From 51f19be620cc2a6682449ef3e709e493101e29d9 Mon Sep 17 00:00:00 2001 From: Stig Ofstad Date: Mon, 19 Jun 2023 14:21:59 +0200 Subject: [PATCH] fixup: rearrange expected tests parameter order --- tests/login.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/login.test.tsx b/tests/login.test.tsx index d8ef8fc..8b6dc08 100644 --- a/tests/login.test.tsx +++ b/tests/login.test.tsx @@ -14,7 +14,7 @@ test('First page visit should redirect to auth provider for login', async () => await waitFor(() => { expect(window.location.replace).toHaveBeenCalledWith( expect.stringMatching( - /^myAuthEndpoint\?response_type=code&client_id=myClientID&scope=someScope\+openid&redirect_uri=http%3A%2F%2Flocalhost%2F&code_challenge=.{43}&code_challenge_method=S256&state=testState/gm + /^myAuthEndpoint\?response_type=code&client_id=myClientID&redirect_uri=http%3A%2F%2Flocalhost%2F&code_challenge=.{43}&code_challenge_method=S256&scope=someScope\+openid&state=testState/gm ) ) })