diff --git a/components/reverse-prompt-home.tsx b/components/reverse-prompt-home.tsx index 9efa8bb..869ac81 100644 --- a/components/reverse-prompt-home.tsx +++ b/components/reverse-prompt-home.tsx @@ -487,15 +487,6 @@ export function ReversePromptHome({ ))} -
-

Advertise your website

- - Claim spot - -
) : null} @@ -649,6 +640,15 @@ export function ReversePromptHome({ > Discord + + ยท + + + Advertise +

) : null} diff --git a/tests/sponsorship-ui.test.ts b/tests/sponsorship-ui.test.ts index 77df1f5..4297e52 100644 --- a/tests/sponsorship-ui.test.ts +++ b/tests/sponsorship-ui.test.ts @@ -68,20 +68,15 @@ test("sponsor page has requested audience snapshot and logos, with contact only }); -test("home footer preserves Discord while claim card sits below the example repos", () => { +test("home footer places Advertise beside Discord without a repo-example ad card", () => { const home = readFileSync("components/reverse-prompt-home.tsx", "utf8"); const footer = home.slice(home.indexOf("")); assert.match(footer, /href="https:\/\/discord\.gg\/eHN86K7rBj"/); assert.match(footer, /Discord/); - assert.doesNotMatch(footer, /Advertise|Claim spot/); assert.match(footer, /href="https:\/\/filiksyos.com"/); - const examplesEnd = home.indexOf("Advertise your website"); - assert.ok(examplesEnd > home.indexOf("Try example repos:")); - assert.ok(examplesEnd < home.indexOf("")); - const card = home.slice(examplesEnd, home.indexOf("")); - assert.match(card, /href="\/sponsor"/); - assert.match(card, /Claim spot/); - assert.doesNotMatch(home, /Sponsor this spot/); + assert.match(footer, /href="\/sponsor"/); + assert.ok(footer.indexOf("Advertise") > footer.indexOf("Discord")); + assert.doesNotMatch(home, /Advertise your website|Claim spot|Sponsor this spot/); + assert.match(home, /Try example repos:/); + assert.doesNotMatch(home.slice(0, home.indexOf("