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

Commit d0162c9d by Sascha Depold

test for sequelize#define

1 parent 57e03481
Showing with 12 additions and 0 deletions
var assert = require("assert")
, Sequelize = require("./../../index")
module.exports = {
'it should add a new model to the model-manager': function() {
var s = new Sequelize('database', 'username', 'password')
assert.eql(s.modelManager.all.length, 0)
s.define('foo', { title: Sequelize.STRING })
assert.eql(s.modelManager.all.length, 1)
}
}
\ 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!