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

Commit ec3b327c by Mick Hansen

array.map -> promise.map

1 parent 7c8b3ab1
Showing with 4 additions and 4 deletions
......@@ -562,7 +562,7 @@ describe(Support.getTestDialectTeaser('Include'), function() {
F.belongsTo(G);
G.belongsTo(H);
return this.sequelize.sync().then(function() {
return this.sequelize.sync({force: true}).then(function() {
return Promise.join(
A.bulkCreate([
{},
......@@ -602,7 +602,7 @@ describe(Support.getTestDialectTeaser('Include'), function() {
return promise;
})([B, C, D, E, F, G, H])
).spread(function (as, b) {
return as.map(function (a) {
return Promise.map(as, function (a) {
return a.setB(b);
});
}).then(function () {
......@@ -655,7 +655,7 @@ describe(Support.getTestDialectTeaser('Include'), function() {
F.belongsTo(G);
G.belongsTo(H);
return this.sequelize.sync().then(function() {
return this.sequelize.sync({force: true}).then(function() {
return Promise.join(
A.bulkCreate([
{},
......@@ -701,7 +701,7 @@ describe(Support.getTestDialectTeaser('Include'), function() {
return promise;
})([B, C, D, E, F, G, H])
).spread(function (as, b) {
return as.map(function (a) {
return Promise.map(as, function (a) {
return a.setB(b);
});
}).then(function () {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!