优化
This commit is contained in:
@@ -25,6 +25,12 @@ test('覆盖国内仓、待单、完成入库、部分和全部出库及列表
|
||||
'/inventories/${inventoryId}', 'transactions?.length === 3']) assert.match(moduleSource, new RegExp(token.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')))
|
||||
})
|
||||
|
||||
test('在创建测试数据前覆盖无筛选整柜入库列表', () => {
|
||||
const unfilteredList = '`${BASE}/inbounds?page=1&size=20`'
|
||||
assert.match(moduleSource, /无筛选查询整柜入库单列表/)
|
||||
assert.ok(moduleSource.indexOf(unfilteredList) < moduleSource.indexOf("api(context, 'POST', `${BASE}/inbounds`"))
|
||||
})
|
||||
|
||||
test('覆盖库存不足、版本冲突及两类幂等行为', () => {
|
||||
assert.match(moduleSource, /库存不足禁止出库/)
|
||||
assert.match(moduleSource, /过期库存版本冲突/)
|
||||
|
||||
Reference in New Issue
Block a user