Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function run_tests(on_finish, phantom) {
if (!window.__anm_conf) window.__anm_conf = {};
window.__anm_conf.forceWindowScope = true;
queue(require)(
[ _files['jasmine'],
// _files['jasmine.html'],
_files['jasmine.teamcity'],
_files['jasmine.phantom'],
_files['vnd.matrix'],
_files['anm.dom-engine'], // FIXME: switch to test-engine
_files['anm.init'],
_files['anm.player'],
_files['anm.collisions'],
_files['anm.intact-import'],
_files['tst.matchers'],
_files['tst.mocks'],
_files['tst.utils'],
_files['tst.engine']
], function() {
anm.switchEngineTo(TestEngine);
loadJasmine(window, [ new jasmine.TeamcityReporter(),
new jasmine.PhantomReporter({ onFinish: on_finish }) ],
[ '*' ]);