添加layui常用方法测试 (#57)

* 添加排序支持负数

* 添加 layui 内部方法的单元测试

* 修复代码风格

* 添加超时时间

* 删除 layui.img 200 http测试, 原因是加载哪个图都不合适

* 修复ie中测试用例兼容性
This commit is contained in:
前端小武
2017-09-02 19:09:08 +08:00
committed by 贤心
parent 102a7497bc
commit 179a188792
4 changed files with 344 additions and 4 deletions

View File

@@ -72,6 +72,13 @@ module.exports = function (config) {
// list of files to exclude
exclude: [],
client: {
mocha: {
// mocha测试超时6秒
timeout: 1000 * 6
}
},
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor