修改功能

This commit is contained in:
2026-08-29 19:06:07 +08:00
parent f94c652c7c
commit aaed0584b1
142 changed files with 6176 additions and 869 deletions
+7
View File
@@ -131,6 +131,13 @@ test('推广区域将空、无权限与请求失败交给统一状态组件呈
assert.match(source, /isForbidden\(error\) \? 'forbidden' : 'error'/);
});
test('推广初始化只规范化一次,避免合法卡片被二次过滤', () => {
const script = fs.readFileSync(path.resolve(__dirname, '../public/js/app-promotion-pages.js'), 'utf8');
assert.match(script, /list\.innerHTML = items\.map\(renderPromotionCard\)\.join\(''\)/);
assert.doesNotMatch(script, /list\.innerHTML = renderPromotionList\(items\)/);
});
test('应用下载页只通过页面标记和新推广模块接入,不暴露业务 ID 输入', () => {
assert.match(appPage, /<body[^>]*data-promotion-page/);
assert.match(appPage, /data-promotion-list/);