From 6bfacb87ca1985f8f8e27f2c128725ecabca62ed Mon Sep 17 00:00:00 2001 From: appdevelopsk Date: Sun, 8 Nov 2026 21:27:23 +0900 Subject: [PATCH] tests: allow spaces in guide_store_click gtag check Guide pages call window.gtag('event', 'guide_store_click', ...) with spaces; the regex required no spaces, so main had 1 failing test (51/52). Claude-Session: https://claude.ai/code/session_01J5anYPdQ1D7nCCyssJYJyv --- tests/catalog-growth.test.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/catalog-growth.test.mjs b/tests/catalog-growth.test.mjs index 623a914c..3860fa34 100644 --- a/tests/catalog-growth.test.mjs +++ b/tests/catalog-growth.test.mjs @@ -58,7 +58,7 @@ test('guide landing pages link only to listed published applications and are dis assert.match(catalog,new RegExp('href="/guides/'+slug+'/"')); assert.match(page,//); - assert.match(page,/gtag\('event','guide_store_click'/); + assert.match(page,/gtag\(\s*'event',\s*'guide_store_click'/); const apps=[...page.matchAll(/data-app="([a-z0-9-]+)"/g)].map(m=>m[1]); assert.equal(apps.length,slug==='quick-games'?5:4); for(const a of apps){