From 695ff14b60dedcd3fd95e3770ffce0c8f24d6907 Mon Sep 17 00:00:00 2001 From: Carlos Jimenez Ruiz Date: Mon, 23 Sep 2019 14:17:44 +0200 Subject: [PATCH] removed the tests index used by karma (deprecated) --- front/test-index.js | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 front/test-index.js diff --git a/front/test-index.js b/front/test-index.js deleted file mode 100644 index e5113f0db..000000000 --- a/front/test-index.js +++ /dev/null @@ -1,28 +0,0 @@ -// require all modules ending in ".spec" from the -// current directory and all subdirectories -import 'angular'; -import 'angular-mocks'; - -window.inject = angular.mock.inject; - -window.ngModule = function(moduleName) { - return angular.mock.module(moduleName, function($provide, $translateProvider) { - // Avoid unexpected request warnings caused by angular translate - // https://angular-translate.github.io/docs/#/guide/22_unit-testing-with-angular-translate - $provide.factory('customLocaleLoader', function($q) { - return function() { - let deferred = $q.defer(); - deferred.resolve({}); - return deferred.promise; - }; - }); - - $translateProvider.useLoader('customLocaleLoader'); - }); -}; - -let testsContext = require.context('./', true, /\.spec\.js$/); -testsContext.keys().forEach(testsContext); - -let modulesContext = require.context('../modules/', true, /^\.\/[a-zA-Z0-9-]+\/front\/.+\.spec\.js$/); -modulesContext.keys().forEach(modulesContext);