Skip to content

Instantly share code, notes, and snippets.

@heronmedeiros
Created June 25, 2011 01:07
Show Gist options
  • Save heronmedeiros/1045980 to your computer and use it in GitHub Desktop.
Save heronmedeiros/1045980 to your computer and use it in GitHub Desktop.
Slidr's test - mongoose
module.exports['Mongoose: attendees'] = testCase({
"Mongoose must have model Atteendee" : function(test){
test.ok(mongoose.models.hasOwnProperty('attendees'));
test.done();
},
"mongoose.attendees must be a function" : function(assert){
var value = mongoose.models.attendees;
assert.ok(typeof(value), "function" );
assert.done();
},
"attendees must be a model" : function(assert){
var value = mongoose.models.attendees;
assert.ok(typeof(value), "model" );
assert.done();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment