test-main.coffee 404 B

1234567891011121314
  1. # Set up requirejs to load the tests
  2. # Uses heuristic that test filenames end with Tests.js
  3. tests = []
  4. for file of window.__karma__.files
  5. if window.__karma__.files.hasOwnProperty(file)
  6. if /test\/unit_frontend\/js.+Tests.js$/.test(file)
  7. tests.push(file)
  8. requirejs.config
  9. baseUrl: '/base/public/js'
  10. paths:
  11. "moment": "libs/moment-2.9.0"
  12. deps: tests
  13. callback: window.__karma__.start