不要怂,就是干,撸起袖子干!

Commit 05a1faa9 by Sascha Depold

test the mixin + model function availability

1 parent 614f8dd5
Showing with 17 additions and 0 deletions
var assert = require("assert")
, Model = require("./../../lib/sequelize/model")
module.exports = {
'mixin should be correctly added to the model': function() {
assert.isDefined(Model.hasOne)
assert.isDefined(Model.hasMany)
assert.isDefined(Model.belongsTo)
},
'model methods should be correctly added to the model': function() {
assert.isDefined(Model.drop)
assert.isDefined(Model.sync)
assert.isDefined(Model.prototype.save)
assert.isDefined(Model.prototype.destroy)
}
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!