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 ## TESTS
TESTER = ./node_modules/.bin/mocha TESTER = ./node_modules/.bin/mocha
OPTS = --require ./test/init.js OPTS = --growl
TESTS = test/*.test.js TESTS = test/*.test.js
test: test:

View File

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

View File

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