Split test cases

This commit is contained in:
Anatoliy Chakkaev 2013-04-08 01:53:55 +04:00
parent cd3d2859cb
commit b6f0c2cfc8
3 changed files with 8 additions and 21 deletions

View File

@ -1,7 +1,7 @@
## TESTS
TESTER = ./node_modules/.bin/mocha
OPTS = --require ./test/init.js
OPTS = --growl
TESTS = test/*.test.js
test:

View File

@ -1,3 +1,5 @@
module.exports = require('should');
var Schema = require('jugglingdb').Schema;
global.getSchema = function() {

View File

@ -1,23 +1,8 @@
var db, Model, should = require('should');
require('./init.js');
describe('mysql imported features', function() {
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();
// });
// });
// });
//
// });
});