Skip to content

Commit

Permalink
fixup: rearrange expected tests parameter order
Browse files Browse the repository at this point in the history
  • Loading branch information
soofstad committed Jun 19, 2023
1 parent 8c21023 commit 51f19be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/login.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
)
})
Expand Down

0 comments on commit 51f19be

Please sign in to comment.