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

Commit feebfae8 by joao.bortolozzo

Code style fixes

1 parent b71da976
...@@ -1641,7 +1641,7 @@ Model.prototype.findOrCreate = function(options) { ...@@ -1641,7 +1641,7 @@ Model.prototype.findOrCreate = function(options) {
); );
} }
if(this.sequelize.constructor.cls){ if (this.sequelize.constructor.cls) {
options.transaction = this.sequelize.constructor.cls.get('transaction'); options.transaction = this.sequelize.constructor.cls.get('transaction');
} }
......
...@@ -22,16 +22,16 @@ describe(Support.getTestDialectTeaser('Model'), function() { ...@@ -22,16 +22,16 @@ describe(Support.getTestDialectTeaser('Model'), function() {
delete current.constructor.cls; delete current.constructor.cls;
}); });
beforeEach(function(){ beforeEach(function () {
this.User = current.define('User', {}, { this.User = current.define('User', {}, {
name: 'John' name: 'John'
}); });
this.stub = stub(this.User.sequelize, 'transaction'); this.stub = stub(this.User.sequelize, 'transaction');
this.stub.returns(new Promise(function(){})); this.stub.returns(new Promise(function () {}));
}); });
afterEach(function(){ afterEach(function () {
this.stub.restore(); this.stub.restore();
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!