Check types of sync and async getters created by belongsTo, close #266
This commit is contained in:
parent
a73f53521e
commit
a67f75f0be
|
@ -78,7 +78,6 @@ describe('relations', function() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function fetch(book) {
|
function fetch(book) {
|
||||||
book.chapters(function(err, ch) {
|
book.chapters(function(err, ch) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
|
@ -151,12 +150,15 @@ describe('relations', function() {
|
||||||
todo.list(function(e, l) {
|
todo.list(function(e, l) {
|
||||||
should.not.exist(e);
|
should.not.exist(e);
|
||||||
should.exist(l);
|
should.exist(l);
|
||||||
|
l.should.be.an.instanceOf(List);
|
||||||
|
todo.list().should.equal(l.id);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('hasAndBelongsToMany', function() {
|
describe('hasAndBelongsToMany', function() {
|
||||||
|
|
Loading…
Reference in New Issue