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

Commit cefbfb8c by cbauerme Committed by Sushant

Seperate test fix (#6321)

* Added ids to

* Removed extra added newline.
1 parent 14377dab
Showing with 8 additions and 7 deletions
...@@ -378,6 +378,7 @@ if (current.dialect.supports.groupedLimit) { ...@@ -378,6 +378,7 @@ if (current.dialect.supports.groupedLimit) {
it('should work with two schema models in a hasMany association', function() { it('should work with two schema models in a hasMany association', function() {
var User = this.sequelize.define('User', {}, {schema: 'archive'}) var User = this.sequelize.define('User', {}, {schema: 'archive'})
, Task = this.sequelize.define('Task', { , Task = this.sequelize.define('Task', {
id: { type: DataTypes.INTEGER, primaryKey: true },
title: DataTypes.STRING title: DataTypes.STRING
}, {schema: 'archive'}); }, {schema: 'archive'});
...@@ -389,19 +390,19 @@ if (current.dialect.supports.groupedLimit) { ...@@ -389,19 +390,19 @@ if (current.dialect.supports.groupedLimit) {
return Promise.join( return Promise.join(
User.create({ User.create({
tasks: [ tasks: [
{title: 'b'}, {id: 1, title: 'b'},
{title: 'd'}, {id: 2, title: 'd'},
{title: 'c'}, {id: 3, title: 'c'},
{title: 'a'} {id: 4, title: 'a'}
] ]
}, { }, {
include: [User.Tasks] include: [User.Tasks]
}), }),
User.create({ User.create({
tasks: [ tasks: [
{title: 'a'}, {id: 5, title: 'a'},
{title: 'c'}, {id: 6, title: 'c'},
{title: 'b'} {id: 7, title: 'b'}
] ]
}, { }, {
include: [User.Tasks] include: [User.Tasks]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!