import assert from 'node:assert/strict' import { readFileSync } from 'node:fs' import test from 'node:test' const read = (path) => readFileSync(new URL(path, import.meta.url), 'utf8') const adminPage = read('../../../apps/admin-web/src/modules/ocean-bookings/pages/OceanBookingDetailView.vue') const adminTypes = read('../../../apps/admin-web/src/modules/ocean-bookings/types.ts') const prototype = read('../../../docs/悦/货代SAAS平台后台/prototype-src/modules/06-containers.html') const dto = read('../../firstleg/src/main/java/com/baiyue/firstleg/oceanbooking/dto/OceanBookingDtos.java') const openapi = read('../../firstleg/src/main/resources/openapi/ocean-bookings-v1.yaml') const fixture = read('ocean-booking-fixture.mjs') const booking = read('ocean-bookings.mjs') const loading = read('phase3-container-loading.mjs') const transportFields = ['billOfLadingNo', 'vesselName', 'voyageNo', 'estimatedSailingAt', 'estimatedArrivalAt'] test('prototype evidence keeps terms and optional customer while current DRAFT stays editable', () => { assert.match(prototype, /主要运输条款 Service Term \*<\/label>