修改代码规范

This commit is contained in:
xuexb 2017-08-23 14:00:09 +08:00
parent f6f7411f91
commit b367b37945
2 changed files with 5 additions and 6 deletions

View File

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

View File

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