更新脚本修改

This commit is contained in:
谢宇宁
2026-11-07 20:26:54 +07:00
parent d95a734909
commit a5df7e8b3c
4 changed files with 16 additions and 7 deletions
+5 -3
View File
@@ -1391,10 +1391,12 @@ test("SSR emits configured TDK, site_name, canonical and bounded pagination link
"SSR and metadata share one configuration request",
);
assert.match(head,/google-site-verification" content="QJFFfKYHJsNfa-lGTdGjsCJc4rytPw-4wsTty-BM6iU"/);
assert.ok(!/google-analytics|mc\.yandex/.test(head));
assert.ok(!/google-analytics/.test(head));
assert.match(home,/googletagmanager\.com\/gtm\.js\?id=/);
assert.match(home,/['"]GTM-TXLP67SX['"]/);
assert.match(home,/googletagmanager\.com\/ns\.html\?id=GTM-TXLP67SX/);
assert.match(home,/['"]GTM-MVSWTDRQ['"]/);
assert.match(home,/googletagmanager\.com\/ns\.html\?id=GTM-MVSWTDRQ/);
assert.match(home,/mc\.yandex\.ru\/metrika\/tag\.js\?id=114122556/);
assert.match(home,/mc\.yandex\.ru\/watch\/114122556/);
for (const agent of [
"Mozilla/5.0 Chrome/130",
"Googlebot",