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() {
|
context('filter', function() {
|
||||||
it('works when using a `where` with a foreign key', function(done) {
|
it('works when using a `where` with a foreign key', function(done) {
|
||||||
User.findOne({
|
User.findOne({
|
||||||
|
@ -1262,9 +1263,7 @@ describe('include', function() {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(done)
|
.then(done)
|
||||||
.catch(function(err) {
|
.catch(done);
|
||||||
done(err);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('performance', function() {
|
describe('performance', function() {
|
||||||
|
|
|
@ -811,8 +811,7 @@ describe('relations', function() {
|
||||||
context('with filter where', function() {
|
context('with filter where', function() {
|
||||||
it('returns patient where id equal to samplePatientId', function(done) {
|
it('returns patient where id equal to samplePatientId', function(done) {
|
||||||
var whereFilter = {where: {id: samplePatientId}};
|
var whereFilter = {where: {id: samplePatientId}};
|
||||||
var patientsFun = physician.patients;
|
physician.patients(whereFilter, function(err, ch) {
|
||||||
patientsFun(whereFilter, function(err, ch) {
|
|
||||||
if (err) return done(err);
|
if (err) return done(err);
|
||||||
should.exist(ch);
|
should.exist(ch);
|
||||||
ch.should.have.lengthOf(1);
|
ch.should.have.lengthOf(1);
|
||||||
|
|
Loading…
Reference in New Issue