'use strict'; require(['../../src/require-config'], function() { require.config({ baseUrl: '../../src/lib', paths: { angularMocks: '../../test/lib/angular-mocks' }, shim: { angularMocks: { exports: 'angular.mock', deps: ['angular'] } } }); // Start the main app logic. require(['js/app-config'], function(app) { app.config.workerPath = '../../src/js'; startTests(); }); }); function startTests() { mocha.setup('bdd'); require( [ 'test/unit/oauth-test', 'test/unit/auth-test', 'test/unit/email-dao-test', 'test/unit/app-controller-test', 'test/unit/pgp-test', 'test/unit/crypto-test', 'test/unit/rest-dao-test', 'test/unit/publickey-dao-test', 'test/unit/privatekey-dao-test', 'test/unit/lawnchair-dao-test', 'test/unit/keychain-dao-test', 'test/unit/devicestorage-dao-test', 'test/unit/dialog-ctrl-test', 'test/unit/add-account-ctrl-test', 'test/unit/account-ctrl-test', 'test/unit/set-passphrase-ctrl-test', 'test/unit/contacts-ctrl-test', 'test/unit/login-existing-ctrl-test', 'test/unit/login-initial-ctrl-test', 'test/unit/login-new-device-ctrl-test', 'test/unit/login-ctrl-test', 'test/unit/read-ctrl-test', 'test/unit/navigation-ctrl-test', 'test/unit/mail-list-ctrl-test', 'test/unit/write-ctrl-test', 'test/unit/outbox-bo-test', 'test/unit/invitation-dao-test', 'test/unit/update-handler-test' ], function() { //Tests loaded, run tests mocha.run(); } ); }