hasMany through - sync scope getter

This commit is contained in:
Fabien Franzen 2014-09-04 21:25:26 +02:00
parent 3efe7ab354
commit 98a75103a1
1 changed files with 4 additions and 0 deletions

View File

@ -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);