Skip to content

Commit

Permalink
add assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
shamilovtim committed Aug 16, 2024
1 parent 706e8e6 commit d018c6a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"dependencies": {
"@tbd54566975/dwn-sdk-js": "0.4.5",
"@tbd54566975/dwn-sql-store": "0.6.5",
"@web5/crypto": "^1.0.3",
"better-sqlite3": "^8.5.0",
"body-parser": "^1.20.2",
"bytes": "3.1.2",
Expand Down
2 changes: 2 additions & 0 deletions tests/scenarios/web5-connect.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ describe('Web5 Connect scenarios', function () {

// 2. Identity Provider (wallet) fetches the Web5 Connect Request object from the Web5 Connect server.
const requestUrl = (await postWeb5ConnectRequestResult.json() as any).request_uri;
const regex = /^http:\/\/localhost:3000\/connect\/authorize\/[a-zA-Z0-9\-]{21,}\.jwt$/;
expect(requestUrl).to.match(regex);

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

0 comments on commit d018c6a

Please sign in to comment.