Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
document.addEventListener('DOMContentLoaded', function() {
if (!require('ember-exam/test-support/load').default()) {
console.warn('DEPRECATION: ember-exam was auto-loaded on DOMContentLoaded. This method of loading is not recommended and will be removed in the next release. Use the `loadEmberExam` method instead. See http://bit.ly/2yqVGDC for more info.');
}
});
export default function start(qunitOptions) {
const framework = require.has('ember-qunit') ? 'qunit' : 'mocha';
const modifiedOptions = qunitOptions || Object.create(null);
modifiedOptions.loadTests = false;
const testLoader = loadEmberExam();
loadTests(testLoader);
const emberTestFramework = require(`ember-${framework}`);
if (emberTestFramework.start) {
emberTestFramework.start(modifiedOptions);
}
}