同步测量与入仓工作区测试契约
This commit is contained in:
@@ -20,7 +20,7 @@ describe('customer dimension config api', () => {
|
|||||||
http.get.mockResolvedValue({ data: { tenantId: 9007199254740993n.toString(), rules: [rawRule] } })
|
http.get.mockResolvedValue({ data: { tenantId: 9007199254740993n.toString(), rules: [rawRule] } })
|
||||||
const result = await getCustomerDimensionConfig('9007199254740993')
|
const result = await getCustomerDimensionConfig('9007199254740993')
|
||||||
expect(http.get).toHaveBeenCalledWith('/platform/v1/first-leg/customer-dimension-config', { params: { tenantId: '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')
|
expect(result.rules[0].id).toBe('9007199254740995')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ describe('InboundWorkflowWorkspace', () => {
|
|||||||
it('keeps pallet and location results read-only in the overview', () => {
|
it('keeps pallet and location results read-only in the overview', () => {
|
||||||
expect(source).toContain(':pallet-locations="detail.palletLocations"')
|
expect(source).toContain(':pallet-locations="detail.palletLocations"')
|
||||||
expect(source).toContain(':sections="[\'history\']"')
|
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('reserveLocation')
|
||||||
expect(source).not.toContain('allocatePallet')
|
expect(source).not.toContain('allocatePallet')
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user