diff --git a/新账系统/test/material-cost.test.js b/新账系统/test/material-cost.test.js index ac108e6..d80b8f4 100644 --- a/新账系统/test/material-cost.test.js +++ b/新账系统/test/material-cost.test.js @@ -99,6 +99,6 @@ test('HTTP内部字段保存每克料价,客户公开接口与打印页隔离 const internal=await (await call('/api/orders/'+id)).json();assert.equal(internal.lines[0].costParts.material,182654);assert.deepEqual(internal.lines[0].costMaterial,{mode:'gram',rate:91327});assert.equal(internal.profit,37346); const publicResponse=await call('/api/orders/'+id+'/public');assert.equal(publicResponse.status,200);const customer=await publicResponse.json(),json=JSON.stringify(customer); for(const key of ['costMaterial','costParts','costLabor','payer','profit','costDue'])assert.ok(!json.includes('"'+key+'"')); - const printResponse=await call('/print/'+id);assert.equal(printResponse.status,200);const html=await printResponse.text();assert.match(html,/id="confirm-document-print"/);assert.equal(html.replace(/