mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-03 21:17:33 +08:00
30 lines
589 B
JavaScript
30 lines
589 B
JavaScript
var tests = [];
|
|
for (var file in window.__karma__.files) {
|
|
if (window.__karma__.files.hasOwnProperty(file)) {
|
|
if (/Spec\.js$/.test(file)) {
|
|
tests.push(file);
|
|
}
|
|
}
|
|
}
|
|
|
|
requirejs.config({
|
|
baseUrl: '/base/src',
|
|
|
|
paths: {
|
|
'jquery': '../lib/jquery',
|
|
'underscore': '../lib/underscore',
|
|
},
|
|
|
|
shim: {
|
|
'underscore': {
|
|
exports: '_'
|
|
}
|
|
},
|
|
|
|
// ask Require.js to load these files (all our tests)
|
|
deps: tests,
|
|
|
|
// start test run, once Require.js is done
|
|
callback: window.__karma__.start
|
|
});
|