Andreas Lind

Results 190 comments of Andreas Lind

I agree about `to throw error satisfying ` reading better. And `to throw error satisfying ` even more so! ` to throw (a|an) ` checks that the thrown value is...

> the assertion does something a little special for strings I believe (comparing the message against it) You're right, that's a bit of a wart in itself, but I think...

@joelmukuthu, personally I'd welcome a PR for this now that the other oddity got resolved.

better-assert does like this to find the subject in the source: ``` js function assert(expr) { if (expr) return; var stack = callsite(); var call = stack[1]; var file =...

@alexjeffburke, are you still working on this? Did my feedback make any sense? :)

> What are the latest env args `UNEXPECTED_FULL_TRACE` should be the only one relevant to users. It implies `BLUEBIRD_DEBUG` so you get the full async traces based on Bluebird's `_trace`...

@kasperisager, that sounds really cool! If we can find a way to automatically generate the typings from the assertions that are defined and their types, I would be open to...

Isn't the original idea covered by https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prop-types.md?

I don't think I have a setup where I can easily reproduce this. Seems like we will only emit this error message when `resp.status.mock.calls.constructor !== [[500]].constructor`, which seems to indicate...