This commit is contained in:
2026-09-20 19:45:24 +08:00
parent 80778e017e
commit 93b58fdd6d
4 changed files with 28 additions and 8 deletions
@@ -7,6 +7,10 @@ import { activeCustomerIdentity, inspectOceanBookingIdentity, minimalPdfBytes,
const source = readFileSync(new URL('truck-appointments.mjs', import.meta.url), 'utf8')
test('self-contained truck booking bill has its own full run namespace', () => {
assert.match(source, /billOfLadingNo: `BL-TRUCK-\$\{context.marker\}`/)
})
test('PDF fixtures contain actual PDF magic bytes', () => {
const content = Buffer.from(minimalPdfBytes('TRUCK')).toString('ascii')
assert.equal(content.slice(0, 5), '%PDF-')