directory structure tweaking

This commit is contained in:
brianc 2010-10-23 18:20:29 -05:00
parent ea165fef37
commit 697a967865
5 changed files with 10 additions and 6 deletions

View File

@ -1,6 +1,11 @@
//executes all the unit tests
var fs = require('fs');
var files = fs.readdirSync(__dirname + '/test/unit');
files.forEach(function(file){
require(__dirname + '/test/unit/' + file.split('.js') [0]);
});
var runDir = function(dir) {
fs.readdirSync(dir).forEach(function(file) {
if(file.indexOf(".js") < 0) {
return runDir(fs.realpathSync(dir + file) + "/");
}
require(dir + file.split('.js') [0]);
});
};
runDir(__dirname+'/test/unit/');

View File

@ -1,7 +1,5 @@
require(__dirname+'/test-helper');
var buffers = require(__dirname+'/test-buffers');
var PARSE = function(buffer) {
return new Parser(buffer).parse();
};

View File

@ -0,0 +1 @@
require(__dirname+'/../test-helper')