const assert = require("assert"); const fs = require("fs"); const path = require("path"); const specialCheckSource = fs.readFileSync( path.resolve(__dirname, "../../src/views/ccdiProject/components/detail/SpecialCheck.vue"), "utf8" ); const sectionSource = fs.readFileSync( path.resolve(__dirname, "../../src/views/ccdiProject/components/detail/ExtendedQuerySection.vue"), "utf8" ); assert(specialCheckSource.includes("extended-query-section"), "专项核查主容器缺少拓展查询组件"); assert(specialCheckSource.includes(':project-id="projectId"'), "专项核查主容器未透传 projectId"); assert( specialCheckSource.includes('