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

Commit e3a3e563 by Mick Hansen

test for #3012

1 parent 6f898d85
Showing with 17 additions and 0 deletions
......@@ -29,6 +29,12 @@ describe(Support.getTestDialectTeaser('Model'), function() {
name: {
type: DataTypes.STRING,
field: 'full_name'
},
taskCount: {
type: DataTypes.INTEGER,
field: 'task_count',
defaultValue: 0,
allowNull: false
}
}, {
tableName: 'users',
......@@ -96,6 +102,11 @@ describe(Support.getTestDialectTeaser('Model'), function() {
},
full_name: {
type: DataTypes.STRING
},
task_count: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: 0
}
}),
queryInterface.createTable('tasks', {
......@@ -357,6 +368,12 @@ describe(Support.getTestDialectTeaser('Model'), function() {
});
});
it('should work with increment', function () {
return this.User.create().then(function (user) {
return user.increment('taskCount');
});
});
it('should work with a simple where', function() {
var self = this;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!