import { readFile } from "node:fs/promises"; import test from "node:test"; import assert from "node:assert/strict"; const sourcePath = new URL("../src/lib/cookie-banner-info.ts", import.meta.url); test("cookie banner uses the native CookieConsent close behavior", async () => { const source = await readFile(sourcePath, "utf8"); assert.match(source, /from "vanilla-cookieconsent"/); assert.match(source, /acceptNecessaryBtn: "Verstanden"/); assert.doesNotMatch(source, /motion\/mini/); assert.doesNotMatch(source, /cookie-info-fab/); });