2013-08-19 15:13:32 -04:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
require(['../../src/require-config'], function() {
|
|
|
|
require.config({
|
2013-11-11 11:56:51 -05:00
|
|
|
baseUrl: '../../src/lib',
|
|
|
|
paths: {
|
|
|
|
angularMocks: '../../test/lib/angular-mocks'
|
|
|
|
},
|
|
|
|
shim: {
|
|
|
|
angularMocks: {
|
|
|
|
exports: 'angular.mock',
|
|
|
|
deps: ['angular']
|
|
|
|
}
|
|
|
|
}
|
2013-08-19 15:13:32 -04:00
|
|
|
});
|
|
|
|
|
2013-11-11 11:56:51 -05:00
|
|
|
|
2013-08-19 15:13:32 -04:00
|
|
|
// Start the main app logic.
|
2014-02-01 08:56:49 -05:00
|
|
|
require(['js/app-config'], function(app) {
|
2013-08-19 15:13:32 -04:00
|
|
|
app.config.workerPath = '../../src/js';
|
|
|
|
|
|
|
|
startTests();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
function startTests() {
|
|
|
|
mocha.setup('bdd');
|
|
|
|
|
|
|
|
require(
|
|
|
|
[
|
2014-04-01 07:16:39 -04:00
|
|
|
'test/new-unit/oauth-test',
|
|
|
|
'test/new-unit/auth-test',
|
2013-08-19 15:13:32 -04:00
|
|
|
'test/new-unit/email-dao-test',
|
2013-10-11 15:30:03 -04:00
|
|
|
'test/new-unit/app-controller-test',
|
2013-10-29 07:19:27 -04:00
|
|
|
'test/new-unit/pgp-test',
|
|
|
|
'test/new-unit/rest-dao-test',
|
|
|
|
'test/new-unit/publickey-dao-test',
|
|
|
|
'test/new-unit/lawnchair-dao-test',
|
|
|
|
'test/new-unit/keychain-dao-test',
|
2013-11-11 11:56:51 -05:00
|
|
|
'test/new-unit/devicestorage-dao-test',
|
|
|
|
'test/new-unit/dialog-ctrl-test',
|
2014-01-27 12:50:13 -05:00
|
|
|
'test/new-unit/add-account-ctrl-test',
|
2013-11-11 11:56:51 -05:00
|
|
|
'test/new-unit/account-ctrl-test',
|
2014-04-11 12:39:13 -04:00
|
|
|
'test/new-unit/set-passphrase-ctrl-test',
|
2014-03-06 12:19:51 -05:00
|
|
|
'test/new-unit/contacts-ctrl-test',
|
2013-11-11 11:56:51 -05:00
|
|
|
'test/new-unit/login-existing-ctrl-test',
|
|
|
|
'test/new-unit/login-initial-ctrl-test',
|
|
|
|
'test/new-unit/login-new-device-ctrl-test',
|
|
|
|
'test/new-unit/login-ctrl-test',
|
|
|
|
'test/new-unit/read-ctrl-test',
|
|
|
|
'test/new-unit/navigation-ctrl-test',
|
|
|
|
'test/new-unit/mail-list-ctrl-test',
|
2013-11-19 10:14:48 -05:00
|
|
|
'test/new-unit/write-ctrl-test',
|
2013-11-20 06:17:21 -05:00
|
|
|
'test/new-unit/outbox-bo-test',
|
2014-03-11 11:06:19 -04:00
|
|
|
'test/new-unit/invitation-dao-test',
|
|
|
|
'test/new-unit/update-handler-test'
|
2013-08-19 15:13:32 -04:00
|
|
|
], function() {
|
|
|
|
//Tests loaded, run tests
|
|
|
|
mocha.run();
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|