test: verify manual inbound unit price flow

This commit is contained in:
2026-09-09 18:34:07 +08:00
parent 0d016bc5fc
commit 1c4f35f61c
2 changed files with 11 additions and 2 deletions
@@ -27,4 +27,7 @@ test('inbound fee lifecycle covers frozen source, version, publication and WAIT_
test('automatic fee adjustment confirms the ten percent tolerance boundary', async () => {
const source = await readFile(moduleFile, 'utf8')
assert.match(source, /reason: `\$\{context\.marker\}-自动费用版本调整`, toleranceConfirmed: true/)
assert.match(source, /adjustedUnitPrice = Number\(\(Math\.max\(0, money\(initial\.unitPrice\)\) \+ 0\.37\)\.toFixed\(4\)\)/)
assert.match(source, /人工对客单价写入最新费用版本/)
assert.match(source, /money\(published\?\.unitPrice\) === adjustedUnitPrice/)
})