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

Fix: return response from callback #138

Merged
merged 4 commits into from
Aug 21, 2024
Merged

Fix: return response from callback #138

merged 4 commits into from
Aug 21, 2024

Conversation

HiteshShrestha
Copy link
Collaborator

@HiteshShrestha HiteshShrestha commented Aug 20, 2024

This PR

  • updates the initialize method to return the response from the callback.
  • adds in test cases for error handling to check if the rejected promise and error thrown is bubbled up or not.

Note: The test run will output a warning since we are using Deprecated Domain module.
(node:88196) [DEP0097] DeprecationWarning: Using a domain property in MakeCallback is deprecated..

test/domain.test.ts Outdated Show resolved Hide resolved
test/domain.test.ts Outdated Show resolved Hide resolved
test/domain.test.ts Outdated Show resolved Hide resolved
test/domain.test.ts Outdated Show resolved Hide resolved
test/domain.test.ts Outdated Show resolved Hide resolved
@mesaugat
Copy link
Member

@HiteshShrestha Looking good. I have added a few comments. Let's also run yarn prettify so that the formatting of files is correct with the prettier version in package.json.

@mesaugat mesaugat merged commit d0e5da9 into main Aug 21, 2024
4 checks passed
@mesaugat mesaugat deleted the fix/return-from-callback branch August 21, 2024 10:40
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