Closed capelio closed 7 years ago
Hey! Sorry you're facing trouble. I'll take a look!
I'm having slight trouble reproducing this. The second example above seems to run under Node v4 and Node v7. I think this is related to the source-map-support plugin. Would you mind telling which version of it are you using? I suspect what's causing it, but I'd like to be certain. Thanks!
Ah, good point. I should have mentioned I'm using babel with mocha, didn't think of it at the time.
A npm ls
gives me source-map-support@0.4.6
. I'm on Node 4.4.4
, npm 2.15.1
, and babel-register 6.18.0
.
I've run the tests both with and without registering babel to mocha. The TypeError only throws when running with babel registered. Everything's kosher once babel is taken out of the equation.
And by the way, thanks a ton for Must.js. Best assertion library out there :)
Thanks for the clarification! I tweaked the implementation of Must.prototype.be
. Would you mind installing from master, this repo, and confirm if that fixes it for you. If it does, I'll publish a release.
Thanks for the love, too! What do you particularly like, so I'll know to bring that up when occasionally promoting it? :)
Nicely done! Pulled latest master, ran npm link
, pulled it into my project with npm link must
, and both tests now pass.
Here's why I love Must:
chai
)Object
Thanks for confirming and for elaborating! :) Sent v0.13.4 out there. Should really tweak a few other things and release v1. This 0.x thing has gone for far too long. This is not GMail with its infinite beta!
Using mocha, must, and promises:
And the TypeError:
Maybe I'm reading the docs incorrectly, but this seems like it should work.