fix: normalize overseas PDA API paths

This commit is contained in:
2026-09-04 13:59:16 +08:00
parent f960b9fe5f
commit a386c50d9f
4 changed files with 47 additions and 11 deletions
+2
View File
@@ -21,6 +21,8 @@ test('pallet API maps only the frozen overseas PDA operation endpoints', async (
assert.match(api, new RegExp(path.replace('/', '\\/')))
}
assert.match(api, /overseasRequest/)
assert.match(api, /const BASE = '\/pda\/v1\/last-leg\/pallet-operations'/)
assert.doesNotMatch(api, /const BASE = '\/api\/pda/)
for (const forbidden of ['customerId', 'warehouseId', 'locationId']) assert.doesNotMatch(api, new RegExp(forbidden))
})