Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding await to did export #1839

Merged
merged 3 commits into from
Oct 15, 2024
Merged

Adding await to did export #1839

merged 3 commits into from
Oct 15, 2024

Conversation

blackgirlbytes
Copy link
Contributor

didDht.export returns a pending promise. We needed an await in front of it to handle the promise.

This pull request includes changes to the site/testsuites/testsuite-javascript/__tests__/web5/build/decentralized-identifiers/how-to-create-did.test.js file to ensure asynchronous operations are handled correctly and to add additional assertions for better test coverage.

Improvements to asynchronous handling and test coverage:

  • Changed didDht.export() to await didDht.export() to ensure the export operation completes before proceeding. (site/testsuites/testsuite-javascript/__tests__/web5/build/decentralized-identifiers/how-to-create-did.test.js)
  • Added an assertion to check if portableDid.uri matches the did string for DidDht. (site/testsuites/testsuite-javascript/__tests__/web5/build/decentralized-identifiers/how-to-create-did.test.js)
  • Changed didJwk.export() to await didJwk.export() to ensure the export operation completes before proceeding. (site/testsuites/testsuite-javascript/__tests__/web5/build/decentralized-identifiers/how-to-create-did.test.js)
  • Added an assertion to check if portableDid.uri matches the did string for DidJwk. (site/testsuites/testsuite-javascript/__tests__/web5/build/decentralized-identifiers/how-to-create-did.test.js)

Copy link

netlify bot commented Oct 15, 2024

Deploy Preview for tbd-website-developer-new ready!

Name Link
🔨 Latest commit 255c37f
🔍 Latest deploy log https://app.netlify.com/sites/tbd-website-developer-new/deploys/670e9480c854a20008d9bc72
😎 Deploy Preview https://deploy-preview-1839--tbd-website-developer-new.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Oct 15, 2024

Deploy Preview for tbd-website-developer ready!

Name Link
🔨 Latest commit 255c37f
🔍 Latest deploy log https://app.netlify.com/sites/tbd-website-developer/deploys/670e94805c51d80008ac2a0f
😎 Deploy Preview https://deploy-preview-1839--tbd-website-developer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@angiejones
Copy link
Member

right now the docs are cloned in site-new so please update the file in that directory too

@blackgirlbytes
Copy link
Contributor Author

@angiejones thanks! Done!

angiejones
angiejones approved these changes Oct 15, 2024
@blackgirlbytes blackgirlbytes merged commit 735d555 into main Oct 15, 2024
17 checks passed
@blackgirlbytes blackgirlbytes deleted the missing-await-on-create-did branch October 15, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants