diff --git a/res/app/components/stf/common-ui/modals/external-url-modal/external-url-modal-spec.js b/res/app/components/stf/common-ui/modals/external-url-modal/external-url-modal-spec.js index 7b6d9cfb..6ccee1a8 100644 --- a/res/app/components/stf/common-ui/modals/external-url-modal/external-url-modal-spec.js +++ b/res/app/components/stf/common-ui/modals/external-url-modal/external-url-modal-spec.js @@ -1,8 +1,8 @@ -describe('VersionUpdateService', function() { +describe('ExternalUrlModalService', function() { beforeEach(angular.mock.module(require('./').name)); - it('should ...', inject(function(VersionUpdateService) { + it('should ...', inject(function(ExternalUrlModalService) { //expect(FatalMessageService.doSomething()).toEqual('something'); diff --git a/res/app/components/stf/common-ui/modals/lightbox-image/lightbox-image-spec.js b/res/app/components/stf/common-ui/modals/lightbox-image/lightbox-image-spec.js index 7b6d9cfb..c0e011fd 100644 --- a/res/app/components/stf/common-ui/modals/lightbox-image/lightbox-image-spec.js +++ b/res/app/components/stf/common-ui/modals/lightbox-image/lightbox-image-spec.js @@ -1,10 +1,10 @@ -describe('VersionUpdateService', function() { +describe('LightboxImageService', function() { beforeEach(angular.mock.module(require('./').name)); - it('should ...', inject(function(VersionUpdateService) { + it('should ...', inject(function(LightboxImageService) { - //expect(FatalMessageService.doSomething()).toEqual('something'); + //expect(XLightboxImageService.doSomething()).toEqual('something'); })); diff --git a/res/test/karma.conf.js b/res/test/karma.conf.js index 8b524880..ebc09b20 100644 --- a/res/test/karma.conf.js +++ b/res/test/karma.conf.js @@ -22,9 +22,6 @@ module.exports = function (config) { // webpack: webpackConfig.webpack, webpack: { - entry: { - app: '../app/app.js' - }, cache: true, module: webpackConfig.webpack.module, resolve: webpackConfig.webpack.resolve, @@ -39,7 +36,8 @@ module.exports = function (config) { }, webpackServer: { debug: true, - devtool: 'eval', + devtool: 'inline-source-map', +// devtool: 'eval', stats: false // stats: { // colors: true @@ -64,22 +62,19 @@ module.exports = function (config) { autoWatch: true, // Start these browsers, currently available: - // - Chrome - // - ChromeCanary - // - Firefox - // - Opera (has to be installed with `npm install karma-opera-launcher`) - // - Safari (only Mac has to be installed with `npm install karma-safari-launcher`) - // - PhantomJS - // - IE (only Windows has to be installed with `npm install karma-ie-launcher`) + // Chrome, ChromeCanary, Firefox, Opera, Safari, PhantomJS, IE browsers: ['PhantomJS'], -// browsers: ['Chrome'], plugins: [ require('karma-jasmine'), require('karma-webpack'), require('karma-chrome-launcher'), + require('karma-firefox-launcher'), require('karma-phantomjs-launcher'), - require('karma-junit-reporter') + require('karma-junit-reporter'), + require('karma-ie-launcher'), + require('karma-safari-launcher'), + require('karma-opera-launcher') ] }) }