同步测量与入仓工作区测试契约

This commit is contained in:
2026-09-03 11:41:45 +08:00
parent a09016835c
commit f50debc5f7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ describe('customer dimension config api', () => {
http.get.mockResolvedValue({ data: { tenantId: 9007199254740993n.toString(), rules: [rawRule] } })
const result = await getCustomerDimensionConfig('9007199254740993')
expect(http.get).toHaveBeenCalledWith('/platform/v1/first-leg/customer-dimension-config', { params: { tenantId: '9007199254740993' } })
expect(result).toEqual({ tenantId: '9007199254740993', rules: [rawRule] })
expect(result).toEqual({ tenantId: '9007199254740993', defaultCalculationMode: 'ADD', rules: [rawRule] })
expect(result.rules[0].id).toBe('9007199254740995')
})
@@ -84,7 +84,7 @@ describe('InboundWorkflowWorkspace', () => {
it('keeps pallet and location results read-only in the overview', () => {
expect(source).toContain(':pallet-locations="detail.palletLocations"')
expect(source).toContain(':sections="[\'history\']"')
expect(source).toContain(':sections="[\'allocations\', \'files\', \'notes\', \'remark\']"')
expect(source).toContain(':sections="[\'dropship\', \'allocations\', \'files\', \'notes\', \'remark\']"')
expect(source).not.toContain('reserveLocation')
expect(source).not.toContain('allocatePallet')
})