tj / should.js

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

should.have.property('name', undefined) #87

Closed l8nite closed 11 years ago

l8nite commented 11 years ago

I want to actually check that I have a property with value undefined.

I think right now the property check is using undefinedness to determine if the second argument was passed in (when instead it should probably check arguments.length).

tj commented 11 years ago

you cant use properties on undefined or null. IMO github.com/visionmedia/better-assert is much cleaner for these, assert(foo.bar == null)

l8nite commented 11 years ago

I'll close this since there are alternatives, but what property is being used here?