Closed gabrielf closed 11 years ago
All who ask about make a
an alias for an
use it like user.name.should.have.a.lengthOf(10)
Need to fix docs also.
Good point! I'll fix the docs and make a testcase using lengthOf.
I've updated the Readme.md and the tests. I made sure that the chaining examples in the Readme uses all getters (a, an, have, be, and, with) and that they exists in the tests to make sure there were no typos.
I have pulled this to v2. I will gather all new breaking changes to this branch for 2.0.0.
This fixes #53. However, after making the change it seems like there is no need for the 'a'. The 'an' method is useful for foo.should.be.an.instanceOf(Object). But when can 'a' be used with the current crop of matchers?
So just see this pull request as a part of the discussion. I'm not as sure anymore whether it is a good idea at all.