From b367b37945d5c4daedb3da7713176eca59ed4517 Mon Sep 17 00:00:00 2001 From: xuexb Date: Wed, 23 Aug 2017 14:00:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81=E8=A7=84?= =?UTF-8?q?=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- karma.conf.base.js | 7 +++---- karma.conf.unit.js | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) 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 +};