24 lines
623 B
JavaScript
24 lines
623 B
JavaScript
|
var db, Model, should = require('should');
|
||
|
|
||
|
require('jugglingdb/test/common.batch.js');
|
||
|
require('jugglingdb/test/include.test.js');
|
||
|
|
||
|
var Post, User;
|
||
|
|
||
|
// test.it('hasMany should support additional conditions', function (test) {
|
||
|
//
|
||
|
// Post = schema.models.Post;
|
||
|
// User = schema.models.User;
|
||
|
//
|
||
|
// User.create(function (e, u) {
|
||
|
// u.posts.create({}, function (e, p) {
|
||
|
// u.posts({where: {id: p.id}}, function (e, posts) {
|
||
|
// test.equal(posts.length, 1, 'There should be only 1 post.');
|
||
|
// test.done();
|
||
|
// });
|
||
|
// });
|
||
|
// });
|
||
|
//
|
||
|
// });
|
||
|
|