15 lines
713 B
JavaScript
15 lines
713 B
JavaScript
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 未提供/)
|
|
})
|