5xYourTeam as a network site (2026-11-15): fixed network link nw5x -> https://5xyourteam.com/{s2}?ref={s1} on the admin account, catalog network template 5xyourteam + NET_SRC fivex/5xyourteam, netsites CODES fivex: nw5x; qa netsrc expects eight network links + nw5x redirect
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+6
-4
@@ -1,5 +1,5 @@
|
||||
// Network sites as traffic sources (2026-11-14). Boots server.js on its own port with a throwaway seeded data dir (JSON store, no DB)
|
||||
// and checks: the admin account gets one fixed network link per site (nwiap, nwls, nwdlb, nwvbb, nwvab, nwsp, nwec) and one source per
|
||||
// and checks: the admin account gets one fixed network link per site (nwiap, nwls, nwdlb, nwvbb, nwvab, nw5x, nwsp, nwec) and one source per
|
||||
// network site; /r/<code>?src=&s1=&s2= lands on the right page with ?ref=<member>; the click counts under the sending site's source;
|
||||
// a member's own link with ?src=<site> gets that site's source made on first use; an unknown src changes nothing; a reboot makes
|
||||
// nothing twice.
|
||||
@@ -28,9 +28,9 @@ const srcOf = (owner, tpl) => read('sources.json').items.find(x => x.owner === o
|
||||
try {
|
||||
await boot();
|
||||
const rots = read('rotator.json').rotations.filter(r => r.owner === ADMIN);
|
||||
ok(['nwiap', 'nwls', 'nwdlb', 'nwvbb', 'nwvab', 'nwsp', 'nwec'].every(c => rots.some(r => r.code === c)) && rots.length === 7, 'the admin account has the seven network links', rots.map(r => r.code));
|
||||
ok(['nwiap', 'nwls', 'nwdlb', 'nwvbb', 'nwvab', 'nw5x', 'nwsp', 'nwec'].every(c => rots.some(r => r.code === c)) && rots.length === 8, 'the admin account has the eight network links', rots.map(r => r.code));
|
||||
const mineSrc = read('sources.json').items.filter(x => x.owner === ADMIN);
|
||||
ok(['instantadpay', 'linkspin', 'downlinebanners', 'viralbannerblitz', 'viraladblitz', 'stackpol', 'earnerscorner'].every(t => mineSrc.some(x => x.template === t)) && mineSrc.length === 7, 'and one source per network site', mineSrc.map(x => x.template));
|
||||
ok(['instantadpay', 'linkspin', 'downlinebanners', 'viralbannerblitz', 'viraladblitz', '5xyourteam', 'stackpol', 'earnerscorner'].every(t => mineSrc.some(x => x.template === t)) && mineSrc.length === 8, 'and one source per network site', mineSrc.map(x => x.template));
|
||||
|
||||
let r = await go('/r/nwdlb?src=iap&s1=bob&s2=how');
|
||||
ok(r.status === 302 && /^https:\/\/downlinebanners\.com\/how\?ref=bob$/.test(r.loc), 'nwdlb: lands on /how with ?ref=bob', r);
|
||||
@@ -38,6 +38,8 @@ try {
|
||||
ok(r.status === 302 && /^https:\/\/instantadpay\.com\/\?ref=amy&lsclk=[a-f0-9]{10}$/.test(r.loc), 'nwiap: home page with ?ref=amy and the click id (InstantAdPay reports joins against it)', r);
|
||||
r = await go('/r/nwec?src=dlb');
|
||||
ok(r.status === 302 && /^https:\/\/earnerscorner\.com\/(\?|$)/.test(r.loc), 'nwec: the forum home', r);
|
||||
r = await go('/r/nw5x?src=fivex&s1=bob');
|
||||
ok(r.status === 302 && /^https:\/\/5xyourteam\.com\/\?ref=bob$/.test(r.loc), 'nw5x: 5xYourTeam with the member ref', r);
|
||||
r = await go('/r/nwvab?src=vab&s1=bob&s2=boost');
|
||||
ok(r.status === 302 && /^https:\/\/viraladblitz\.com\/boost\?ref=bob$/.test(r.loc), 'nwvab: ViralAdBlitz page with the member ref', r);
|
||||
r = await go('/r/nwvbb?src=linkspin', 'https://linkspin.app/contract');
|
||||
@@ -60,7 +62,7 @@ try {
|
||||
ok(read('sources.json').items.filter(x => x.owner === MEM).length === 2, 'an unknown src makes no source');
|
||||
|
||||
await stop(); await boot();
|
||||
ok(read('rotator.json').rotations.filter(x => x.owner === ADMIN).length === 7 && read('sources.json').items.filter(x => x.owner === ADMIN).length === 7, 'a reboot makes nothing twice');
|
||||
ok(read('rotator.json').rotations.filter(x => x.owner === ADMIN).length === 8 && read('sources.json').items.filter(x => x.owner === ADMIN).length === 8, 'a reboot makes nothing twice');
|
||||
} catch (e) { fail++; console.error(e); }
|
||||
finally { await stop(); try { fs.rmSync(DATA, { recursive: true, force: true }); } catch (e) {} }
|
||||
console.log('\n' + pass + ' passed, ' + fail + ' failed'); process.exit(fail ? 1 : 0);
|
||||
|
||||
Reference in New Issue
Block a user