chore(清理): 删除 10 个零引用文件并裁剪钉住它们的护栏断言
admin-frontend-vue:AdminConfirm.vue 只是 openAdminConfirm 的空壳包装(调用方走 imperative 入口);StatusPill/ModalShell/DrawerShell 与各自的 status-pill-model、 modal-model 构成孤儿岛,无任何页面 import;MaskReveal.vue 无引用点(掩码语义仍由 店铺侧 secret-mask 承担);duplicate-api.ts 是被 duplicate-console-api.ts 取代的 平行实现,DuplicateCheckPage 只用后者。frontend-vue:shared/utils/bootstrap.ts 全仓零命中。 护栏随之收口:task-248.test.ts 整支删除(8 个用例全在钉 modal-model 与两个 Shell), task-247 去掉 status-pill-model 的 6 个用例与三个组件的钉(保留 CopyText/copy-model), task-245 去掉 AdminConfirm.vue 的两行,task-115/117/118 去掉 duplicate-api.ts 的端点钉。
This commit is contained in:
@@ -73,14 +73,12 @@ test('test_task_245_confirm_model_invalid_input_rejected', () => {
|
||||
})
|
||||
|
||||
test('test_task_245_confirm_component_dependency_failure_returns_actionable_message', () => {
|
||||
// 依赖失败:组件/调用入口真实接入 ElMessageBox,按钮键来自模型。
|
||||
// 依赖失败:调用入口真实接入 ElMessageBox,按钮键来自模型。
|
||||
const imperative = readSource('src/components/admin-confirm.ts')
|
||||
assert.match(imperative, /ElMessageBox\.confirm/, '打开入口需调用 ElMessageBox.confirm')
|
||||
assert.match(imperative, /confirmButtonText/)
|
||||
assert.match(imperative, /cancelButtonText/)
|
||||
assert.match(imperative, /createConfirmPlan/)
|
||||
const component = readSource('src/components/AdminConfirm.vue')
|
||||
assert.match(component, /openAdminConfirm/, '组件需暴露 open 打开入口')
|
||||
const model = readSource('src/components/admin-confirm-model.ts')
|
||||
assert.match(model, /此操作可能影响已有数据。/)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user