test(订单实收): 对齐建单 INSERT 列位
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

This commit is contained in:
Ubuntu
2026-11-03 13:02:12 +08:00
parent b7f5cc3ce9
commit 42c5824646
@@ -80,7 +80,9 @@ describe('order items PATCH contract', () => {
expect(service).toContain('ordered_quantity = $2::numeric');
expect(service).toContain('ordered_quantity');
// 末尾 $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)');
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');