Files
Dev-Landing/tests/cookie-banner-info.test.mjs
Matthias Meister d2ba994fad Add native cookie consent and move hero intro above CTA
- Restore CookieConsent banner behavior with the new dependency
- Reposition the right-panel intro above the Projekt anfragen button
- Add focused tests and update build metadata
2026-05-06 21:22:12 +02:00

15 lines
551 B
JavaScript

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/);
});