http://www.chaijs.com/

Chai is a BDD / TDD assertion library for node and the browser that can be delightfully paired with any javascript testing framework.

Expect object to have proprety

http://www.chaijs.com/api/bdd/#method_property

expect({a: 1}).to.have.property('a');