- 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
15 lines
551 B
JavaScript
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/);
|
|
});
|