2013-08-19 15:13:32 -04:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
require(['../../src/require-config'], function() {
|
|
|
|
require.config({
|
|
|
|
baseUrl: '../../src/lib'
|
|
|
|
});
|
|
|
|
|
|
|
|
// Start the main app logic.
|
|
|
|
require(['js/app-config', 'cordova'], function(app) {
|
2013-08-20 04:11:14 -04:00
|
|
|
window.Worker = undefined; // disable web workers since mocha doesn't support them
|
2013-08-19 15:13:32 -04:00
|
|
|
|
|
|
|
app.config.workerPath = '../../src/js';
|
|
|
|
|
|
|
|
startTests();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
function startTests() {
|
|
|
|
mocha.setup('bdd');
|
|
|
|
|
|
|
|
require(
|
|
|
|
[
|
|
|
|
'test/new-unit/email-dao-test',
|
2013-10-11 15:30:03 -04:00
|
|
|
'test/new-unit/app-controller-test',
|
|
|
|
'test/new-unit/pgp-test'
|
2013-08-19 15:13:32 -04:00
|
|
|
], function() {
|
|
|
|
//Tests loaded, run tests
|
|
|
|
mocha.run();
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|