Closed olalonde closed 11 years ago
Would be nice to have should.have.keys(keys) but where keys is a non exhaustive list of keys. Right now, it fails if keys doesn't contain every single keys that the object has.
My workaround for now is:
['user', 'email', 'name'].forEach(function (property) { user.should.have.property(property); });
Also - and maybe this should be a separate issue - why can't I chain this way?
user.should.have.property('username').and.have.property('email');
in v2 will be properties(name1, name2,. ..)
properties(name1, name2,. ..)
Would be nice to have should.have.keys(keys) but where keys is a non exhaustive list of keys. Right now, it fails if keys doesn't contain every single keys that the object has.
My workaround for now is:
Also - and maybe this should be a separate issue - why can't I chain this way?