Open nwinch opened 8 years ago
Hey! Sure, customizing what gets stringified makes sense. I see there's Must.prototype.throw
that uses the actual
parameter for assigning to the error object but still expecting the original actual
(the function that threw an exception) to be stringified. Once I figure out how these two cases can co-exist, I'll make the change ;)
Hey @moll! I noticed in the
assert
function here:That
this.actual
is stringified, though could that bestringify(opts.actual)
instead? Asthis.actual
is assigned toopts.actual
a couple of lines above anyway if it doesn't already exist.This would help me pass a more pleasant looking
actual
for the assertion error message, which I'm doing over atmust-jsx
.