#56 ✓resolved
TJ Holowaychuk

Have strict / non-strict alternatives

Reported by TJ Holowaychuk | April 7th, 2009 @ 08:33 PM

Many of the matchers could do with strict / non-strict versions similar to eql and equal resulting in assertions like below:

response = { ran : '1' }
response.should.have_prop 'ran', true
// => true

response = { ran : '1' }
response.should.have_property 'ran', true
// => false

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Tiny, full-featured JavaScript BDD framework.

People watching this ticket