diff --git a/scripts/test-tagged-links.ts b/scripts/test-tagged-links.ts index fc2b4f1..8cae4e9 100644 --- a/scripts/test-tagged-links.ts +++ b/scripts/test-tagged-links.ts @@ -27,7 +27,7 @@ assert.equal(taggedDestination('a'.repeat(41)), null); // Query strings on the request are not part of the code and cannot retarget it. assert.equal(taggedDestination('ig-bio?dest=https://evil.example'), null); -assert.equal(Object.keys(taggedRoutes).length, 274); +assert.equal(Object.keys(taggedRoutes).length, 284); for (const [code, dest] of Object.entries(taggedRoutes)) { assert.match(code, /^[a-z0-9-]{1,40}$/); assert.equal(isSameSitePath(dest), true, `${code} destination must be same-site`); @@ -70,6 +70,10 @@ assert.equal(taggedDestination('pt-gold-coast-construction-accountants'), '/'); assert.equal(taggedDestination('pt-versace-timbers'), '/'); assert.equal(taggedDestination('pt-lbtt'), '/'); assert.equal(taggedDestination('pt-arboriculture-australia'), '/'); +assert.equal(taggedDestination('pt-tastafe'), '/'); +assert.equal(taggedDestination('pt-lincoln-sentry'), '/'); +assert.equal(taggedDestination('pt-vacc'), null); +assert.equal(taggedDestination('pt-tools-warehouse'), null); assert.equal(isSameSitePath('/free/car-logbook/'), true); assert.equal(taggedDestination('pt-master-locksmiths'), null); diff --git a/src/config.ts b/src/config.ts index cc2c6d4..9362f26 100644 --- a/src/config.ts +++ b/src/config.ts @@ -338,6 +338,16 @@ export const taggedRoutes = { 'pt-master-painters-nsw': '/', 'pt-agwa': '/', 'pt-arboriculture-australia': '/', + 'pt-tastafe': '/', + 'pt-swtafe': '/', + 'pt-tafe-gippsland': '/', + 'pt-melbourne-polytechnic': '/', + 'pt-master-builders-nt': '/', + 'pt-master-plumbers-wa': '/', + 'pt-master-plumbers-act': '/', + 'pt-irrigation-australia': '/', + 'pt-resene': '/', + 'pt-lincoln-sentry': '/', // Kitbag Email 'em-261127': '/go/etsy-p05/?page=em-261127&coupon=BFCM15', 'em-261127-shop': '/go/etsy-shop/?page=em-261127-shop&coupon=BFCM15',