提交 f2a14112 编写于 作者: Y yylgit

fix unit test

上级 7c0bd99f
......@@ -312,6 +312,7 @@ _.getJsonFileContent = function (filePath, confType) {
let subProject = cml.config.get().subProject;
if (subProject && subProject.length > 0) {
subProject.forEach(function(item) {
let { npmName } = item;
let npmRouterConfig = _.readsubProjectRouterConfig(cml.projectRoot, npmName);
npmRouterConfig.routes && npmRouterConfig.routes.forEach(item => {
......
......@@ -567,7 +567,7 @@ describe('index.js', function () {
cml.config = {
get() {
return {
subProject: ['cml-pages'],
subProject: [{npmName: 'cml-pages'}],
copyNpm: {
wx: ['copy-npm']
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册