/** * The app is served on two addresses until December 17, 2026: https://noah.kody.run/mega-radio/ (appBasePath * '/mega-radio') and https://mega-radio--noah.kody.run/ (appBasePath ''). Every link must follow the base. */ import { test } from 'node:test' import assert from 'node:assert/strict' import { renderPage } from '../src/page.ts' import { signArt } from '../src/art.ts' import { fileRoute } from '../src/audio-core.ts' import { HOSTED_URL } from '../src/config.ts' const member = { kind: 'member' as const, username: 'n', logoutHref: '/-/auth/logout?app=mega-radio', discordName: 'Noah', expiresAt: '2026-12-31T00:00:00Z' } for (const base of ['/mega-radio', '']) { test(`page links follow the base (${base || 'new origin'})`, () => { const html = renderPage(base, member) assert.ok(html.includes(``)) assert.ok(html.includes(`