test(order): distinguish publication and final price book states

This commit is contained in:
2026-10-03 00:50:52 +08:00
parent 0319bb51a0
commit 1db6e744c8
2 changed files with 5 additions and 0 deletions
@@ -133,6 +133,7 @@ test('channel gate publishes private A then B, proves client removal and rejects
assert.equal(report.orderSubmissionGates.channel.publicVersionsUnchanged,true)
assert.deepEqual(report.orderSubmissionGates.remaining,['Other pending scope'])
assert.equal(books.get('201').version.status,'SUPERSEDED');assert.equal(books.get('202').version.status,'ACTIVE')
assert.equal(JSON.stringify(report.orderSubmissionGates.channel.versions.map(version=>[version.statusAtPublication,version.status])),JSON.stringify([['ACTIVE','SUPERSEDED'],['ACTIVE','ACTIVE']]))
assert.equal(calls.filter(call=>call.path.endsWith('/publish')).length,2)
assert.equal(calls.filter(call=>call.path.includes('/submit')).length,2)
assert.ok(calls.filter(call=>call.method==='POST').every(call=>!call.path.includes('customerId=0')&&!call.path.includes('/100/')))