1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 18:29:17 +02:00

All dependency/unit test passes now.

Added karma loader for IE/Firefox/Safari/Opera.
This commit is contained in:
Gunther Brunner 2014-08-22 15:48:00 +09:00
parent aad3db8828
commit a0efad0ecf
3 changed files with 13 additions and 18 deletions

View file

@ -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');

View file

@ -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');
}));

View file

@ -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')
]
})
}