mirror of
https://github.com/moparisthebest/mail
synced 2024-11-26 19:02:20 -05:00
30 lines
563 B
JavaScript
30 lines
563 B
JavaScript
'use strict';
|
|
|
|
require(['../../src/require-config'], function() {
|
|
require.config({
|
|
baseUrl: '../../src/lib'
|
|
});
|
|
|
|
// Start the main app logic.
|
|
require(['js/app-config', 'cordova'], function(app) {
|
|
window.Worker = undefined; // disable web workers since mocha doesn't support them
|
|
|
|
app.config.workerPath = '../../src/js';
|
|
|
|
startTests();
|
|
});
|
|
});
|
|
|
|
function startTests() {
|
|
mocha.setup('bdd');
|
|
|
|
require(
|
|
[
|
|
'test/new-unit/email-dao-test',
|
|
'test/new-unit/app-controller-test'
|
|
], function() {
|
|
//Tests loaded, run tests
|
|
mocha.run();
|
|
}
|
|
);
|
|
} |