diff --git a/test/relations.test.js b/test/relations.test.js index 39a9f5d2..13d63e1f 100644 --- a/test/relations.test.js +++ b/test/relations.test.js @@ -850,6 +850,10 @@ describe('relations', function () { Author.findOne(function (err, author) { author.avatar(function (err, p) { should.not.exist(err); + + var avatar = author.avatar(); + avatar.should.equal(p); + p.name.should.equal('Avatar'); p.imageableId.should.eql(author.id); p.imageableType.should.equal('Author');