Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shamilovtim committed Jul 13, 2024
1 parent bf742c3 commit 05c9663
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/scenarios/web5-connect.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ describe('Web5 Connect scenarios', function () {
id_token : { dummyToken: 'dummyToken' },
// state : 'dummyState', // intentionally missing
};
const postIncompleteWeb5ConnectResponseResult = await fetch(`${web5ConnectBaseUrl}/connect/sessions`, {
const postIncompleteWeb5ConnectResponseResult = await fetch(`${web5ConnectBaseUrl}/connect/callback`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(incompleteResponseBody),
Expand All @@ -106,15 +106,15 @@ describe('Web5 Connect scenarios', function () {
id_token : { dummyToken: 'dummyToken' },
state
};
const postWeb5ConnectResponseResult = await fetch(`${web5ConnectBaseUrl}/connect/sessions`, {
const postWeb5ConnectResponseResult = await fetch(`${web5ConnectBaseUrl}/connect/callback`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(web5ConnectResponseBody),
});
expect(postWeb5ConnectResponseResult.status).to.equal(201);

// 6. App fetches the Web5 Connect Response object from the Web5 Connect server.
const web5ConnectResponseUrl = `${web5ConnectBaseUrl}/connect/sessions/${web5ConnectResponseBody.state}.jwt`;
const web5ConnectResponseUrl = `${web5ConnectBaseUrl}/connect/token/${web5ConnectResponseBody.state}.jwt`;

let getWeb5ConnectResponseResult;
await Poller.pollUntilSuccessOrTimeout(async () => {
Expand Down

0 comments on commit 05c9663

Please sign in to comment.