Check types of sync and async getters created by belongsTo, close #266

This commit is contained in:
Anatoliy Chakkaev 2013-04-15 09:13:31 +04:00 committed by Raymond Feng
parent a73f53521e
commit a67f75f0be
1 changed files with 3 additions and 1 deletions

View File

@ -78,7 +78,6 @@ describe('relations', function() {
});
});
});
function fetch(book) {
book.chapters(function(err, ch) {
should.not.exist(err);
@ -151,12 +150,15 @@ describe('relations', function() {
todo.list(function(e, l) {
should.not.exist(e);
should.exist(l);
l.should.be.an.instanceOf(List);
todo.list().should.equal(l.id);
done();
});
});
});
});
});
});
describe('hasAndBelongsToMany', function() {