Remove unnecessary tests for adhocSort !== false

This commit is contained in:
Tetsuo Seto 2017-05-14 21:27:33 -07:00
parent aa3f5fa4f4
commit ef08458e8d
2 changed files with 4 additions and 6 deletions

View File

@ -655,7 +655,8 @@ describe('include', function() {
});
});
it('findWithForeignKeysByPage', function() {
bdd.describeIf(connectorCapabilities.adhocSort === false,
'findWithForeignKeysByPage', function() {
context('filter', function() {
it('works when using a `where` with a foreign key', function(done) {
User.findOne({
@ -1262,9 +1263,7 @@ describe('include', function() {
}
})
.then(done)
.catch(function(err) {
done(err);
});
.catch(done);
});
describe('performance', function() {

View File

@ -811,8 +811,7 @@ describe('relations', function() {
context('with filter where', function() {
it('returns patient where id equal to samplePatientId', function(done) {
var whereFilter = {where: {id: samplePatientId}};
var patientsFun = physician.patients;
patientsFun(whereFilter, function(err, ch) {
physician.patients(whereFilter, function(err, ch) {
if (err) return done(err);
should.exist(ch);
ch.should.have.lengthOf(1);