修邻接测试: 明细保存 INSERT 补 $21(spec) 断言
CI / server typecheck + tests (push) Canceled after 0s
CI / web typecheck + tests + miniprogram syntax (push) Canceled after 0s
CI / eslint (观察项,C7 骨架) (push) Canceled after 0s
CI / npm audit (critical 硬拦) (push) Canceled after 0s

2d9fbf4 给 orderManageItemsService 新行 INSERT 加了 $21(spec),但漏改邻接的既有断言 OrderManagementPage.contract.test.ts「录单改单同步 ordered_quantity 快照」——它仍钉末尾 ", $5)" 的旧串而被打红。本次补齐期望串末尾 , $21(纯测试,不动产品代码)。
This commit is contained in:
雨天
2026-10-16 17:07:35 +08:00
parent 83952f6411
commit d129488fb5
@@ -79,7 +79,8 @@ describe('order items PATCH contract', () => {
);
expect(service).toContain('ordered_quantity = $2::numeric');
expect(service).toContain('ordered_quantity');
expect(service).toContain('VALUES ($1, $2, $3, $4, $5, $6, $7, $8, 10, $9, $10, $11, $12, $13, $14, $15, $7, NOW(), $20, $16, $17, $18::uuid, $19::uuid[], $5)');
// 末尾 $21 = spec(order_items.spec;2026-10-16 起订单详情可改规格,INSERT 落该列)
expect(service).toContain('VALUES ($1, $2, $3, $4, $5, $6, $7, $8, 10, $9, $10, $11, $12, $13, $14, $15, $7, NOW(), $20, $16, $17, $18::uuid, $19::uuid[], $5, $21)');
});
it('admin can edit received qty from status 40 via admin-received-qty', () => {
const page = readFileSync(new URL('./OrderManagementPage.tsx', import.meta.url), 'utf8');