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

Commit fbf4cee8 by Mick Hansen

Merge pull request #3761 from BridgeAR/testcase2

Add testcase
2 parents 93814d5a 643a3357
......@@ -1740,7 +1740,18 @@ describe(Support.getTestDialectTeaser('BelongsToMany'), function() {
}).then(function() {
return Promise.all([
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) {
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!