修改功能
This commit is contained in:
@@ -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/);
|
||||
|
||||
Reference in New Issue
Block a user