Andreas Lind

Results 190 comments of Andreas Lind

Should we try to get this completed for v11?

The `when called with`/`when called` assertion actually yields the return value of the function, which is then passed as the subject for the subsequent assertions. Your example will only work...

@sunesimonsen, or use https://github.com/unexpectedjs/unexpected/pull/383 to do it without the intermediate type :smirk_cat:

Doing better now as of #276.

Whoops, accidentally replied to this on the wrong issue, copy/pasting here: > What is your use case for github like diffs. Are you diffing a lot of source code? It'd...

No, I'm fairly sure it's still a mess.

Unfortunately this is not going to work like described above. Getting the cast type to "stick" when an assertion delegates to another assertion won't work without some sort of opt-in...

Landed the start of a spike on the `cast` branch.

Needs special casing in `it`, `equal`, `inspect`, and `diff` on `wrappedExpect` when casts are active.