added log to data (TEMPORARY) to debug on travis
This commit is contained in:
parent
8f41fdf90d
commit
c626587d8f
|
@ -450,7 +450,6 @@ function testOrm(schema) {
|
|||
|
||||
|
||||
it('hasMany should be cached', function (test) {
|
||||
|
||||
User.find(1, function(err, user) {
|
||||
User.create(function(err, voidUser) {
|
||||
Post.create({userId: user.id}, function() {
|
||||
|
@ -465,6 +464,7 @@ function testOrm(schema) {
|
|||
test.equal(nbInitialRequests, nbSchemaRequests, 'There should not be any request because value is cached.');
|
||||
|
||||
user.posts({where: {id: 12}}, function(err, data) {
|
||||
console.log('data', data);
|
||||
test.equal(data.length, 1, 'There should be only one post.');
|
||||
test.equal(nbInitialRequests + 1, nbSchemaRequests, 'There should be one additional request since we added conditions.');
|
||||
|
||||
|
|
Loading…
Reference in New Issue