I'm genuinely confused about what assert.throws() in does in Node.js. It doesn't seem to return anything? The docs don't seem to be particularly helpful, either. https://nodejs.org/api/assert.html#assert_assert_throws_fn_error_message …
-
-
I'm just now beginning to become more familiar with assertion libs – I've skirted around needing them, but I've hit a point where I can't get around it any longer.
-
The problem I was having was that I wasn't actually testing to see what would happen when the assert.throws *failed to throw*, which now explains a lot

- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.