import test from 'node:test' import assert from 'node:assert/strict' import { occurrences, readSource } from './helpers.ts' /** * 数富后台「服务即将到期」续费提醒弹窗(V146,2026-10-05 需求)的口径护栏。 * * 需求原话:仅剩不到 5 天开始提醒、只能缩小不能关闭、续费到超过 5 天才消失。 * 这三条全靠 ExpiryNotice.vue 一个组件兑现,而组件是 SFC、node --test 编译不了, * 所以断言打在实际源码上:阈值、渲染条件、可点的按钮、收起态记的是什么键、挂在哪。 * * 每个正则都必须在真源码上匹配得到(先确认真命中再断言),否则就是恒绿的摆设。 */ const COMPONENT = 'src/components/ExpiryNotice.vue' const LAYOUT = 'src/layout/AdminLayout.vue' const TYPES = 'src/types/admin.ts' /** SFC 的