Remove unnecessary tests for adhocSort !== false
This commit is contained in:
parent
aa3f5fa4f4
commit
ef08458e8d
|
@ -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() {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue