fix: normalize overseas PDA API paths
This commit is contained in:
@@ -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))
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user