Split test cases
This commit is contained in:
parent
cd3d2859cb
commit
b6f0c2cfc8
2
Makefile
2
Makefile
|
@ -1,7 +1,7 @@
|
|||
## TESTS
|
||||
|
||||
TESTER = ./node_modules/.bin/mocha
|
||||
OPTS = --require ./test/init.js
|
||||
OPTS = --growl
|
||||
TESTS = test/*.test.js
|
||||
|
||||
test:
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
module.exports = require('should');
|
||||
|
||||
var Schema = require('jugglingdb').Schema;
|
||||
|
||||
global.getSchema = function() {
|
||||
|
|
|
@ -1,23 +1,8 @@
|
|||
var db, Model, should = require('should');
|
||||
require('./init.js');
|
||||
|
||||
require('jugglingdb/test/common.batch.js');
|
||||
require('jugglingdb/test/include.test.js');
|
||||
describe('mysql imported features', function() {
|
||||
|
||||
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();
|
||||
// });
|
||||
// });
|
||||
// });
|
||||
//
|
||||
// });
|
||||
require('jugglingdb/test/common.batch.js');
|
||||
require('jugglingdb/test/include.test.js');
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue