Skip to content

Commit

Permalink
Use encoded value
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarvarela committed Dec 16, 2024
1 parent 476bf88 commit cb909b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/gatsby-site/server/tests/next-auth.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function mockAuthEvent(operation: string, email: string, callbackUrl: string): P
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:134.0) Gecko/20100101 Firefox/134.0",
host: "localhost:8000",
},
body: `email=${encodedEmail}&redirect=false&callbackUrl=${callbackUrl}&csrfToken=3fc5b5ba3bb4457090ea32b335e69294637dca5a9473dcc669a4ed00cdadf199&json=true`,
body: `email=${encodedEmail}&redirect=false&callbackUrl=${encodedCallbackUrl}&csrfToken=3fc5b5ba3bb4457090ea32b335e69294637dca5a9473dcc669a4ed00cdadf199&json=true`,
}
}

Expand Down Expand Up @@ -152,7 +152,7 @@ describe('Auth', () => {

describe('Signup', () => {

test('Should send a Sig nup link email to unregistered users', async () => {
test('Should send a Sign nup link email to unregistered users', async () => {

const email = "[email protected]";

Expand Down Expand Up @@ -197,7 +197,7 @@ describe('Auth', () => {
expect(tokens).toMatchObject([{ identifier: email, }]);
});

test('Should send a Sig in link email to registered users', async () => {
test('Should send a Sign in link email to registered users', async () => {

const email = "[email protected]";

Expand Down

0 comments on commit cb909b9

Please sign in to comment.