tj / should.js

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

idea: of #141

Closed ianstormtaylor closed 11 years ago

ianstormtaylor commented 11 years ago

i think the grammatically correct way to test typeof would be:

.should.be.of.type('string')

instead of:

.should.have.type('string')

just tripped me up a second ago

ianstormtaylor commented 11 years ago

slash i thought i could just do this:

.should.be.a('string')

but this isn't the case?

btd commented 11 years ago

Hey, i agree about .of. We make .a to be an alias for .an in 2.x.x. Now to get type use .type.