import { describe, expect, it } from '@rstest/core';
import {
BADGE_VERSION,
edgeCacheKey,
handleRequest,
withConditional,
} from '../src/badge';
import { renderHome } from '../src/home';
import { LOGO_96 } from '../src/logo';
const ORIGIN = 'https://badge.example.com';
const request = (query: string, init?: RequestInit) =>
new Request(`${ORIGIN}/e2e?${query}`, init);
const payloads = [
'',
'',
'">