1 Star 2 Fork 2

大鱼先生 / fish-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
test-main.js 782 Bytes
一键复制 编辑 原始数据 按行查看 历史
大鱼先生 提交于 2020-06-22 10:35 . init 0.01
var allTestFiles = []
var TEST_REGEXP = /(spec|test)\.js$/i
// Get a list of all the test files to include
Object.keys(window.__karma__.files).forEach(function (file) {
if (TEST_REGEXP.test(file)) {
// Normalize paths to RequireJS module names.
// If you require sub-dependencies of test files to be loaded as-is (requiring file extension)
// then do not normalize the paths
var normalizedTestModule = file.replace(/^\/base\/|\.js$/g, '')
allTestFiles.push(normalizedTestModule)
}
})
require.config({
// Karma serves files under /base, which is the basePath from your config file
baseUrl: '/base',
// dynamically load all test files
deps: allTestFiles,
// we have to kickoff jasmine, as it is asynchronous
callback: window.__karma__.start
})
JavaScript
1
https://gitee.com/hardyDou/fish-admin.git
git@gitee.com:hardyDou/fish-admin.git
hardyDou
fish-admin
fish-admin
master

搜索帮助