From 98a75103a15cbb05d7ddaf0a5751745612fbf8f1 Mon Sep 17 00:00:00 2001 From: Fabien Franzen Date: Thu, 4 Sep 2014 21:25:26 +0200 Subject: [PATCH] hasMany through - sync scope getter --- test/relations.test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/relations.test.js b/test/relations.test.js index 03b542a0..39a9f5d2 100644 --- a/test/relations.test.js +++ b/test/relations.test.js @@ -302,6 +302,10 @@ describe('relations', function () { }); function verify(physician) { physician.patients(function (err, ch) { + + var patients = physician.patients(); + patients.should.eql(ch); + should.not.exist(err); should.exist(ch); ch.should.have.lengthOf(3);