not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
504 B

  1. var tests = Object.keys(window.__karma__.files).filter(function (file) {
  2. return (/Spec\.js$/).test(file);
  3. });
  4. requirejs.config({
  5. // Karma serves files from '/base'
  6. baseUrl: "/base",
  7. paths: {
  8. "sugar-web": ".",
  9. "mustache": "lib/mustache",
  10. "text": "lib/text",
  11. "webL10n": "lib/webL10n"
  12. },
  13. // ask Require.js to load these files (all our tests)
  14. deps: tests,
  15. // start test run, once Require.js is done
  16. callback: window.__karma__.start
  17. });