2013-06-10 18:17:08 -04:00
|
|
|
'use strict';
|
|
|
|
|
2013-10-02 09:47:41 -04:00
|
|
|
require(['src/require-config'], function() {
|
2013-06-10 18:17:08 -04:00
|
|
|
require.config({
|
2013-10-02 09:47:41 -04:00
|
|
|
baseUrl: 'src/lib'
|
2013-06-10 18:17:08 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
// Start the main app logic.
|
2013-10-02 09:47:41 -04:00
|
|
|
require(['js/app-config'], function(app) {
|
|
|
|
window.Worker = undefined; // disable web workers since mocha doesn't support them
|
2013-06-10 18:17:08 -04:00
|
|
|
|
|
|
|
app.config.workerPath = '../../src/js';
|
2013-10-02 09:47:41 -04:00
|
|
|
//app.config.cloudUrl = 'http://localhost:8888';
|
2013-06-10 18:17:08 -04:00
|
|
|
|
|
|
|
startTests();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
function startTests() {
|
2013-10-02 09:47:41 -04:00
|
|
|
mocha.setup('bdd');
|
|
|
|
|
|
|
|
require(
|
|
|
|
[
|
|
|
|
'../../email-dao-test'
|
|
|
|
], function() {
|
|
|
|
//Tests loaded, run tests
|
|
|
|
mocha.run();
|
|
|
|
}
|
|
|
|
);
|
2013-06-10 18:17:08 -04:00
|
|
|
}
|