test: keep overseas acceptance fixtures independent
This commit is contained in:
@@ -8,8 +8,12 @@ const here = path.dirname(fileURLToPath(import.meta.url))
|
||||
const source = fs.readFileSync(path.join(here, 'phase4-overseas-inbound-operations.mjs'), 'utf8')
|
||||
|
||||
test('module covers the frozen Admin inbound-plan write surface', () => {
|
||||
for (const value of ['/convert', '/pallets/supplement', '/fba-appointments/batch',
|
||||
for (const value of ['/container-preview', '/convert-container', '/pallets/supplement', '/fba-appointments/batch',
|
||||
'/fba-appointments/${encodeURIComponent(appointmentNo)}']) assert.ok(source.includes(value), value)
|
||||
assert.equal(source.includes("`${PLAN_BASE}/convert`"), false)
|
||||
assert.match(source, /snapshotVersion/)
|
||||
assert.match(source, /snapshotHash/)
|
||||
assert.match(source, /'Idempotency-Key'/)
|
||||
assert.match(source, /重复转换返回同一入仓计划/)
|
||||
assert.match(source, /FBA预约同单号异载荷返回A0409/)
|
||||
assert.match(source, /appointmentStatus: 'CANCELLED'/)
|
||||
|
||||
Reference in New Issue
Block a user