put tests in static folder, still have a race condition no biggy

This commit is contained in:
John McLear 2013-02-03 13:53:44 +00:00
parent 0ff9f53297
commit 8b8cf01785
1 changed files with 3 additions and 3 deletions

View File

@ -8,9 +8,9 @@ exports.expressCreateServer = function (hook_name, args, cb) {
fs.readdir('node_modules', function(err, plugins){ // installed plugins fs.readdir('node_modules', function(err, plugins){ // installed plugins
plugins.forEach(function(plugin){ // for each one plugins.forEach(function(plugin){ // for each one
if(fs.existsSync("node_modules/"+plugin+"/tests/frontend/specs")){ // If the folder exists if(fs.existsSync("node_modules/"+plugin+"/static/tests/frontend/specs")){ // If the folder exists
fs.readdir("node_modules/"+plugin+"/tests/frontend/specs/", function(err, pluginFiles){ fs.readdir("node_modules/"+plugin+"/static/tests/frontend/specs/", function(err, pluginFiles){
files.push("/static/plugins/"+plugin+"/tests/frontend/specs/"+pluginFiles); files.push("/static/plugins/"+plugin+"/static/tests/frontend/specs/"+pluginFiles);
}); });
} }
}); });