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

Commit 2657a8df by Ruben Bridgewater

Insert missing returns

1 parent 17e3fd5b
...@@ -1813,7 +1813,7 @@ describe(Support.getTestDialectTeaser('Model'), function() { ...@@ -1813,7 +1813,7 @@ describe(Support.getTestDialectTeaser('Model'), function() {
it('should allow decimals in sum', function() { it('should allow decimals in sum', function() {
var self = this; var self = this;
return this.UserWithDec.bulkCreate([{value: 3.5}, {value: 5.25}]).then(function() { return this.UserWithDec.bulkCreate([{value: 3.5}, {value: 5.25}]).then(function() {
self.UserWithDec.sum('value').then(function(sum) { return self.UserWithDec.sum('value').then(function(sum) {
expect(sum).to.equal(8.75); expect(sum).to.equal(8.75);
}); });
}); });
......
...@@ -737,7 +737,7 @@ describe(Support.getTestDialectTeaser('Model'), function() { ...@@ -737,7 +737,7 @@ describe(Support.getTestDialectTeaser('Model'), function() {
return User.create({myvals: [1, 2, 3, 4], mystr: ['One', 'Two', 'Three', 'Four']}).then(function(user) { return User.create({myvals: [1, 2, 3, 4], mystr: ['One', 'Two', 'Three', 'Four']}).then(function(user) {
user.myvals = []; user.myvals = [];
user.mystr = []; user.mystr = [];
user.save().on('sql', function(sql) { return user.save().on('sql', function(sql) {
expect(sql.indexOf('ARRAY[]::INTEGER[]')).to.be.above(-1); expect(sql.indexOf('ARRAY[]::INTEGER[]')).to.be.above(-1);
expect(sql.indexOf('ARRAY[]::VARCHAR[]')).to.be.above(-1); expect(sql.indexOf('ARRAY[]::VARCHAR[]')).to.be.above(-1);
}); });
...@@ -1444,7 +1444,7 @@ describe(Support.getTestDialectTeaser('Model'), function() { ...@@ -1444,7 +1444,7 @@ describe(Support.getTestDialectTeaser('Model'), function() {
{id: 5}, {id: 5},
{id: 10} {id: 10}
]).then(function() { ]).then(function() {
Worker.findAll({order: 'id ASC'}).then(function(workers) { return Worker.findAll({order: 'id ASC'}).then(function(workers) {
expect(workers[0].id).to.equal(5); expect(workers[0].id).to.equal(5);
expect(workers[1].id).to.equal(10); expect(workers[1].id).to.equal(10);
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!