test: complete phase3 phase4 acceptance coverage

This commit is contained in:
2026-08-25 00:24:43 +08:00
parent 84ad5e779a
commit 73d206e3f3
21 changed files with 908 additions and 69 deletions
@@ -0,0 +1,14 @@
import assert from 'node:assert/strict'
import { readFileSync } from 'node:fs'
import test from 'node:test'
const source = readFileSync(new URL('./supplemental-boundaries.mjs', import.meta.url), 'utf8')
test('occupied location deletion protection reuses only the marker-owned loading fixture', () => {
assert.match(source, /phase3Loading/)
assert.match(source, /inventoryMutationCleanup\?\.targetLocationId/)
assert.match(source, /loading\?\.marker === context\.marker/)
assert.match(source, /真实占用库位删除返回A0409且保留资源/)
assert.match(source, /占用删除冲突未造成资源丢失/)
assert.doesNotMatch(source, /no-public-fixture-api|当前公共验收 API 未提供/)
})