fix: some
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 2m16s

This commit is contained in:
luo
2026-10-14 09:12:34 +08:00
parent 697ff9c33c
commit d672dec0d0
10 changed files with 77 additions and 32 deletions

View File

@@ -183,6 +183,13 @@ test('expiry boundaries and Shanghai rendering preserve server values, including
assert.equal(formatShanghaiExpiry('2026-10-13T12:30:00'), '2026-10-13 12:30:00');
});
test('homepage expiry popup never displays backend level labels', () => {
const source = readFileSync(resolve(root, 'components/ExpiryReminderPopup.vue'), 'utf8');
assert.doesNotMatch(source, /level_name|reminder-level/);
assert.match(source, /reminder\.remaining_days/);
assert.match(source, /formatShanghaiExpiry\(reminder\.expires_at\)/);
});
test('shared asset-info receiver keeps a child-first reminder and rejects stale sessions/phones', async () => {
const r = runtime();
const { assetApi } = await r.load('api/modules/asset.js');