mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
put tests in static folder, still have a race condition no biggy
This commit is contained in:
parent
0ff9f53297
commit
8b8cf01785
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue