Merge remote-tracking branch 'origin/test' into dev
This commit is contained in:
@@ -38,4 +38,16 @@ test('initial fee preparation is reusable without confirming or publishing the f
|
||||
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/)
|
||||
})
|
||||
|
||||
test('customer confirms chargeable quantity and manual unit price in one locked version', async () => {
|
||||
const source = await readFile(moduleFile, 'utf8')
|
||||
assert.match(source, /Client 读取已推送计费量、对客单价和费用合计/)
|
||||
assert.match(source, /Client 一次确认计费量、对客单价和费用/)
|
||||
assert.match(source, /customerConfirmationStatus === 'CONFIRMED'/)
|
||||
assert.match(source, /客户费用确认重放返回同一锁定版本/)
|
||||
assert.match(source, /客户确认后平台不得再次修改计费量或对客单价/)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user