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

Commit 138b076d by Ryan Fink

Use the promise chain for the test

1 parent 6d498582
Showing with 1 additions and 7 deletions
...@@ -315,13 +315,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () { ...@@ -315,13 +315,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
var User = this.sequelize.define('UserWithUniqueFieldAlias', { var User = this.sequelize.define('UserWithUniqueFieldAlias', {
userName: { type: Sequelize.STRING, unique: 'user_name_unique', field: 'user_name' } userName: { type: Sequelize.STRING, unique: 'user_name_unique', field: 'user_name' }
}); });
User.sync({ force: true }) return User.sync({ force: true });
.then(function() {
return done();
})
.catch(function(err) {
throw err;
});
}); });
it('allows us to customize the error message for unique constraint', function(done) { it('allows us to customize the error message for unique constraint', function(done) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!