Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 6ad488665fcbe8bee6e84a9b4412d813c692e3ff 1 parent 14bd23b
@1602 authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/relations.test.js
View
4 test/relations.test.js
@@ -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() {
Please sign in to comment.
Something went wrong with that request. Please try again.