chore(slim-jim) add configuration

This commit is contained in:
Misko Hevery
2012-02-09 11:12:39 -08:00
parent 6e635012fb
commit 292a5dae07
2 changed files with 20 additions and 1 deletions

19
angularFiles.js vendored
View File

@@ -154,3 +154,22 @@ angularFiles = {
'test/jquery_remove.js'
]
};
// Execute only in slim-jim
if (typeof JASMINE_ADAPTER !== 'undefined') {
// SlimJim config
files = [JASMINE_ADAPTER];
angularFiles.jstd.forEach(function(pattern) {
// replace angular source
if (pattern === '@angularSrc') files = files.concat(angularFiles.angularSrc);
// ignore jstd files
else if (!/jstd-(scenario-)?adapter/.test(pattern)) files.push(pattern);
});
exclude = angularFiles.jstdExclude;
autoWatch = true;
autoWatchInterval = 1;
logLevel = LOG_ERROR;
logColors = true;
}