-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Allow non-void promises in assertThrowsAsync #6052
Conversation
But why would you want to return something from the cb? Unless there's a good reason for this, the complication isn't worth it IMO. |
Thanks for the response! 😁 Here's the context for my issue/PR - It throws if If i'm using Thanks for your effort on deno 🦕 😁 |
@JonShort Ok makes sense. Could you please add a test demonstrating assertThrowsAsync with a function that returns a non-void? |
👍 Yeah sure I'll sort this out tonight (I'm on UK-time) |
a116f49
to
efd08ee
Compare
@ry - I've added some tests, let me know if you need anything else 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thanks Jon - sorry for all the nitpicky comments
No problem! Thanks for all the help, really useful 👍 🦕 |
Fixes #6051
Allows return-type of the Promise to be inferred, or declared.
Before
After