freescout/freescout-dist/vendor/lord/laroute/karma.js

20 lines
471 B
JavaScript
Raw Normal View History

2023-12-22 19:40:32 +00:00
tests = [];
for (var file in window.__karma__.files) {
if (window.__karma__.files.hasOwnProperty(file)) {
if (/Spec\.js$/.test(file)) {
tests.push(file);
}
}
}
require.config({
// Karma serves files under /base, which is the basePath from your config file
baseUrl: '/base/public/js',
// dynamically load all test files
deps: tests,
// we have to kickoff jasmine, as it is asynchronous
callback: window.__karma__.start
});