Skip to content

Commit

Permalink
Merge pull request sequelize#3761 from BridgeAR/testcase2
Browse files Browse the repository at this point in the history
Add testcase
  • Loading branch information
mickhansen committed May 20, 2015
2 parents 93814d5 + 643a335 commit fbf4cee
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion test/integration/associations/belongs-to-many.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fbf4cee

Please sign in to comment.