directory structure tweaking
This commit is contained in:
parent
ea165fef37
commit
697a967865
@ -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/');
|
||||
|
@ -1,7 +1,5 @@
|
||||
require(__dirname+'/test-helper');
|
||||
|
||||
var buffers = require(__dirname+'/test-buffers');
|
||||
|
||||
var PARSE = function(buffer) {
|
||||
return new Parser(buffer).parse();
|
||||
};
|
1
test/unit/connection/test-helper.js
Normal file
1
test/unit/connection/test-helper.js
Normal file
@ -0,0 +1 @@
|
||||
require(__dirname+'/../test-helper')
|
Loading…
Reference in New Issue
Block a user