优化
This commit is contained in:
@@ -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-')
|
||||
|
||||
Reference in New Issue
Block a user