Skip to content

Commit

Permalink
修改代码规范
Browse files Browse the repository at this point in the history
  • Loading branch information
xuexb committed Aug 23, 2017
1 parent f6f7411 commit b367b37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions karma.conf.base.js
Expand Up @@ -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'
];

/**
Expand All @@ -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: '',

Expand Down Expand Up @@ -123,4 +122,4 @@ module.exports = function(config) {
// 脚本调用请设为 true
singleRun: true
};
};
};
4 changes: 2 additions & 2 deletions karma.conf.unit.js
Expand Up @@ -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);
};
};

0 comments on commit b367b37

Please sign in to comment.