hasMany through - sync scope getter
This commit is contained in:
parent
3efe7ab354
commit
98a75103a1
|
@ -302,6 +302,10 @@ describe('relations', function () {
|
||||||
});
|
});
|
||||||
function verify(physician) {
|
function verify(physician) {
|
||||||
physician.patients(function (err, ch) {
|
physician.patients(function (err, ch) {
|
||||||
|
|
||||||
|
var patients = physician.patients();
|
||||||
|
patients.should.eql(ch);
|
||||||
|
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
should.exist(ch);
|
should.exist(ch);
|
||||||
ch.should.have.lengthOf(3);
|
ch.should.have.lengthOf(3);
|
||||||
|
|
Loading…
Reference in New Issue