Make getFiles more consistent

This commit is contained in:
Eldar Djafarov 2013-01-30 16:48:22 -02:00
parent c4b8139ee8
commit c8c19d3b6f
2 changed files with 4 additions and 8 deletions

View File

@ -64,6 +64,8 @@ function getFiles(compsBase32) {
return files; return files;
} }
exports.getFiles = getFiles;
exports.lint = function () { exports.lint = function () {
var files = getFiles(); var files = getFiles();

View File

@ -1,18 +1,12 @@
// Testacular configuration // Testacular configuration
// Generated on Sat Jan 19 2013 16:24:31 GMT-0200 (BRST) // Generated on Sat Jan 19 2013 16:24:31 GMT-0200 (BRST)
var deps = require(__dirname+'/../build/deps.js').deps; var libSources = require(__dirname+'/../build/build.js').getFiles();
// base path, that will be used to resolve files and exclude // base path, that will be used to resolve files and exclude
basePath = ''; basePath = '';
var libSources = [];
for (var dep in deps) {
libSources = libSources.concat(deps[dep].src);
}
for (var i=0; i < libSources.length; i++) { for (var i=0; i < libSources.length; i++) {
libSources[i] = "../src/" + libSources[i]; libSources[i] = "../" + libSources[i];
} }
// list of files / patterns to load in the browser // list of files / patterns to load in the browser