mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-07 08:52:26 +00:00
test(monitor-ui): 配额视图渲染与开关门控用例
- 新增 MonitorQuotaView.spec:tier window/label 的 i18n 映射与未知 token 透出、阈值配色(≥90 红/≥75 黄/其余绿)、进度条宽度钳制、 多币种余额与单余额回退、plan_level 徽章、错误截断与失败态不渲染 tiers - 新增 MonitorCard.quota.spec:latest_quota 受系统开关门控, 无快照或开关关闭时不渲染 - 既有工厂/断言补 check_mode、account_id;provider 网格断言 4→8
This commit is contained in:
5 files changed
+224
-1
No files matched your search
@@ -34,6 +34,8 @@ function makeMonitor(overrides: Partial<ChannelMonitor> = {}): ChannelMonitor {
|
||||
extra_headers: {},
|
||||
body_override_mode: 'off',
|
||||
body_override: null,
|
||||
check_mode: 'probe',
|
||||
account_id: null,
|
||||
...overrides,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user