moll / js-must

An assertion library for JavaScript and Node.js with a friendly BDD syntax (awesome.must.be.true()). It ships with many expressive matchers and is test runner and framework agnostic. Follows RFC 2119 with its use of MUST. Good stuff and well tested.
Other
336 stars 35 forks source link

Promises not working with `true()` #34

Open saulshanabrook opened 9 years ago

saulshanabrook commented 9 years ago

I am using the latest beta.

This doesn't work:

    yield Promise.resolve(true).must.eventually.be.true()

It errors with:

Function.prototype.toString is not generic
running chrome
TypeError: Function.prototype.toString is not generic
    at Must.toString (native)

...but this does work.

    yield Promise.resolve(true).must.eventually.equal(true)
moll commented 9 years ago

Hey! Sorry you're having trouble. Is that when using Must.js in Chrome?

saulshanabrook commented 9 years ago

Yep