| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Change LGTM, I don't think I've ever used an expectsError without throws before (except in callbacks). |
Sorry, something went wrong.
|
@nodejs/testing |
Sorry, something went wrong.
There was a problem hiding this comment.
Code LGTM.
Sorry, something went wrong.
There was a problem hiding this comment.
Docs ttps://github.com/nodejs/node/blob/master/test/common/README.md
Sorry, something went wrong.
|
@BridgeAR You're the one who's gonna have to resolve all the conflicts in expectsError 😉 |
Sorry, something went wrong.
|
@refack I added the documentation. About resolving the conflicts: I think it would be best to first merge this as is and then change all those calls over time. |
Sorry, something went wrong.
Sorry, something went wrong.
PR-URL: nodejs#14089 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Refael Ackermann <refack@gmail.com>
|
This doesn’t land cleanly on 8.x; if you can, please follow the guide and raise a backport PR, if you don’t think it’s worth it let me know and we’ll add the dont-land-on label. |
Sorry, something went wrong.
|
@BridgeAR IMHO if you apply the PRs to test/common in order they should land cleanly, I believe you could group them all into a single backport PR. |
Sorry, something went wrong.
|
Should this be backported to v6.x-staging? If yes please follow the guide and raise a backport PR, if not let me know or add the dont-land-on label. |
Sorry, something went wrong.
|
This function does not exist in v.6 so backporting is obsolete. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This is mainly a style thing but I think it's pretty nice to add the throwing function directly to common.expectsError instead of wrapping that into the throw function as it's done most of the time.
I thought I just create this as a example and I only changed a few tests accordingly.
Checklist
Affected core subsystem(s)
test