diff --git a/karma.conf.base.js b/karma.conf.base.js index 3ae0cf1..42e4d9a 100644 --- a/karma.conf.base.js +++ b/karma.conf.base.js @@ -27,7 +27,7 @@ var sourceFileMap = [ 'src/lay/modules/util.js', 'src/lay/modules/mobile/zepto.js', 'src/lay/modules/mobile/layer-mobile.js', - 'src/lay/modules/mobile/upload-mobile.js', + 'src/lay/modules/mobile/upload-mobile.js' ]; /** @@ -42,9 +42,8 @@ sourceFileMap.filter(function (uri) { coverageFileMap[uri] = ['coverage']; }); -module.exports = function(config) { +module.exports = function (config) { return { - // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', @@ -123,4 +122,4 @@ module.exports = function(config) { // 脚本调用请设为 true singleRun: true }; -}; \ No newline at end of file +}; diff --git a/karma.conf.unit.js b/karma.conf.unit.js index 3fe64bd..724a557 100644 --- a/karma.conf.unit.js +++ b/karma.conf.unit.js @@ -5,8 +5,8 @@ var base = require('./karma.conf.base.js'); -module.exports = function(config) { +module.exports = function (config) { var options = Object.assign(base(config), {}); config.set(options); -}; \ No newline at end of file +};