goloroden/node-assertthat — pull request #4 by ElectricMaxxx (2013-04-06 23:02:35+00:00)
Title: Throwing Messages

Hi,

i tried some things with Exception Messages.
it works fine with an extra method: is.throwingMsg('msg');
test where alle green and ok.

Please have a look at it and give me an response.
When it is ok, i will do almost the same with the regular expr.

But, i think it would be even better if we could manage a chain like:
is.throwing.message('msg');
But i don`t know how to make it.
My (native) idea woul be an other return system. Storing in an obj result:{message:'bla','success:true/false'} and returning this in every function, and do:
var test = is.result;
...
But you are the expert, i think you will know a better way.

max

PS: ich wollte es mal internatinal halten, aber mein Englisch ist bei weitem ned so gut wie Deines. ;-)