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

Commit 643a3357 by Ruben Bridgewater

Add testcase

1 parent 01d86c28
...@@ -1740,7 +1740,18 @@ describe(Support.getTestDialectTeaser('BelongsToMany'), function() { ...@@ -1740,7 +1740,18 @@ describe(Support.getTestDialectTeaser('BelongsToMany'), function() {
}).then(function() { }).then(function() {
return Promise.all([ return Promise.all([
self.sequelize.model('tasksusers').findAll({ where: { userId: this.user1.id }}), self.sequelize.model('tasksusers').findAll({ where: { userId: this.user1.id }}),
self.sequelize.model('tasksusers').findAll({ where: { taskId: this.task2.id }}) self.sequelize.model('tasksusers').findAll({ where: { taskId: this.task2.id }}),
self.User.findOne({
where: self.sequelize.or({ username: 'Franz Joseph' }),
include: [{
model: self.Task,
where: {
title: {
$ne: 'task'
}
}
}]
}),
]); ]);
}).spread(function(tu1, tu2) { }).spread(function(tu1, tu2) {
expect(tu1).to.have.length(0); expect(tu1).to.have.length(0);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!