Created
June 25, 2011 01:07
-
-
Save heronmedeiros/1045980 to your computer and use it in GitHub Desktop.
Slidr's test - mongoose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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