优化
This commit is contained in:
@@ -14,11 +14,13 @@ test('phase3 loading fixture identifiers are deterministic and distinct across m
|
||||
assert.ok(`P3B-${primary}`.length <= 64)
|
||||
})
|
||||
|
||||
test('phase3 loading uses the collision-safe marker suffix for inventory mutation locations', async () => {
|
||||
test('phase3 loading uses the collision-safe marker suffix for generated business identifiers', async () => {
|
||||
const source = await import('node:fs/promises').then((fs) => fs.readFile(
|
||||
new URL('./phase3-loading.mjs', import.meta.url), 'utf8'))
|
||||
assert.match(source, /const mutationSuffix = markerSuffix\(context\.marker\)/)
|
||||
assert.doesNotMatch(source, /mutationSuffix = context\.marker\.replace\(\/\\D\/g/)
|
||||
assert.match(source, /if \(!targetLocationId\)[\s\S]+库存变化fixture创建失败后停止旧snapshot提交[\s\S]+return/)
|
||||
assert.match(source, /if \(!reboundValid\)[\s\S]+库存换绑未成功后停止旧snapshot提交[\s\S]+return/)
|
||||
assert.match(source, /const suffix = markerSuffix\(context\.marker\)/)
|
||||
assert.match(source, /billOfLadingNo: `P3BL-\$\{suffix\}`/)
|
||||
assert.match(source, /vesselName: `P3VESSEL-\$\{suffix\}`/)
|
||||
assert.doesNotMatch(source, /suffix = context\.marker\.replace\(\/\\D\/g/)
|
||||
assert.match(source, /增量后旧 inventory token 明确 A0409 并要求刷新/)
|
||||
assert.match(source, /增量旧 token 冲突后 plan\/task\/items 零写入/)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user