tj / should.js

BDD style assertions for node.js -- test framework agnostic
MIT License
2.75k stars 194 forks source link

.which does not chain after property assertion #166

Closed basicallydan closed 10 years ago

basicallydan commented 10 years ago

The chain item .which, as far as I can tell, should allow chained assertions like the following:

book.should.have.property('title').which.should.eql('Intro to Unit Testing');

However, at this point .which is undefined. In order to make this particular type of chained assertion work I need to do the following.

book.should.have.property('title').which.should.eql('Intro to Unit Testing');

This feels like a hack to me. Is all of the above expected?

btd commented 10 years ago

Yes .which is missing now, because it is only in master. I will publish soon it as we discuss all edges of new version.

basicallydan commented 10 years ago

Oh, great! Cool :) thanks @btd