Track HiveGrid Cloud planning reference

This commit is contained in:
david committed 2026-06-26 20:48:01 +02:00
1 parent b3d5ea6764
commit e341c5938a
5784 files changed
+1104929 -3

No files matched your search

@@ -0,0 +1,33 @@
import {describe, it, expect} from 'vitest'
import { CookieCategory } from "./CookieCategory";
import { allApplicationCookies, allCookieCategories } from "./ApplicationCookies";
describe("CookieData", () => {
describe("allApplicationCookies", () => {
it("should contain at least one cookie", () => {
expect(allApplicationCookies.length).toBeGreaterThan(0);
});
it("should have unique cookie names", () => {
const cookieNames = allApplicationCookies.map((cookie) => cookie.name);
const uniqueCookieNames = new Set(cookieNames);
expect(uniqueCookieNames.size).toEqual(cookieNames.length);
});
it("should provide translation keys for rendered expiry values", () => {
expect(allApplicationCookies.filter((cookie) => cookie.expiry && !cookie.expiryKey)).toEqual([]);
});
});
describe("allCookieCategories", () => {
it("should contain all categories present in allApplicationCookies", () => {
const expectedCategories = [
CookieCategory.REQUIRED,
CookieCategory.FUNCTIONAL,
CookieCategory.ANALYTICS,
CookieCategory.ADVERTISEMENT,
];
expect(allCookieCategories).toEqual(expectedCategories);
});
});
});