| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Can you add a test please. |
Sorry, something went wrong.
|
Sure, should I use a child process and test std err, or is there another way? |
Sorry, something went wrong.
|
We have common.expectWarning() in our tests. You should be able to look in the test/ directory for examples. |
Sorry, something went wrong.
|
As long as code is undefined, common.expectWarning throws me an exception. So I used assertions instead of expectWarning const [ message, code ] = expected.shift();
^
TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) |
Sorry, something went wrong.
|
@guybedford Done! Thanks for reviewing! Tell me if something else is not correct. |
Sorry, something went wrong.
There was a problem hiding this comment.
This looks good to me.
Sorry, something went wrong.
Sorry, something went wrong.
PR-URL: #30720 Reviewed-By: Guy Bedford <guybedford@gmail.com>
PR-URL: #30720 Reviewed-By: Guy Bedford <guybedford@gmail.com>
|
Depends on #29866 to land on v12.x-staging |
Sorry, something went wrong.
PR-URL: nodejs#30720 Reviewed-By: Guy Bedford <guybedford@gmail.com>
PR-URL: nodejs#30720 Reviewed-By: Guy Bedford <guybedford@gmail.com>
| Back | FazBrowse Home | New Git URL |
Fixes #30601.
Checklist