|
@@ -54,7 +54,7 @@ describe('test/app/service/template_node.test.js', () => {
|
|
const indexes = yield ctx.service.templateIndex.getAllDataByCondition({where: {template_id: templateId}});
|
|
const indexes = yield ctx.service.templateIndex.getAllDataByCondition({where: {template_id: templateId}});
|
|
assert(indexes.length === 42);
|
|
assert(indexes.length === 42);
|
|
const params = yield ctx.service.templateParam.getAllDataByCondition({where: {template_id: templateId}});
|
|
const params = yield ctx.service.templateParam.getAllDataByCondition({where: {template_id: templateId}});
|
|
- assert(params.length === 103);
|
|
|
|
|
|
+ assert(params.length === 102);
|
|
});
|
|
});
|
|
it('importData test xlsx File', function* () {
|
|
it('importData test xlsx File', function* () {
|
|
const ctx = app.mockContext();
|
|
const ctx = app.mockContext();
|
|
@@ -68,6 +68,6 @@ describe('test/app/service/template_node.test.js', () => {
|
|
const indexes = yield ctx.service.templateIndex.getAllDataByCondition({where: {template_id: templateId}});
|
|
const indexes = yield ctx.service.templateIndex.getAllDataByCondition({where: {template_id: templateId}});
|
|
assert(indexes.length === 12);
|
|
assert(indexes.length === 12);
|
|
const params = yield ctx.service.templateParam.getAllDataByCondition({where: {template_id: templateId}});
|
|
const params = yield ctx.service.templateParam.getAllDataByCondition({where: {template_id: templateId}});
|
|
- assert(params.length === 65);
|
|
|
|
|
|
+ assert(params.length === 64);
|
|
});
|
|
});
|
|
});
|
|
});
|