loopback-connector-mysql/test/mysql.test.js

24 lines
623 B
JavaScript
Raw Normal View History

2013-03-27 00:37:13 +00:00
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();
// });
// });
// });
//
// });