polymorphic hasMany - test sync scope getter
This commit is contained in:
parent
e502bd4459
commit
80b71438a7
|
@ -983,6 +983,10 @@ describe('relations', function () {
|
|||
Author.findOne(function (err, author) {
|
||||
author.pictures(function (err, pics) {
|
||||
should.not.exist(err);
|
||||
|
||||
var pictures = author.pictures();
|
||||
pictures.should.eql(pics);
|
||||
|
||||
pics.should.have.length(1);
|
||||
pics[0].name.should.equal('Author Pic');
|
||||
done();
|
||||
|
|
Loading…
Reference in New Issue