import { test, expect } from "vitest"; import { ADDITIONAL_BASE_LABELS, GRAPH_LABEL_COLOURS } from "../index"; test("ADDITIONAL_BASE_LABELS holds exactly the four additional labels", () => { expect([...ADDITIONAL_BASE_LABELS].sort()).toEqual([ "Applicant", "Engineer", "GuestProfile", "Supplier", ]); }); test("no additional label carries its own colour", () => { // Each surfaces as its base node's chip and colour, so registering a hue // for one would contradict the exclusion and render a chip-less legend row. for (const label of ADDITIONAL_BASE_LABELS) { expect( Object.prototype.hasOwnProperty.call(GRAPH_LABEL_COLOURS, label), `:${label} is an additional label and must not have its own colour`, ).toBe(false); } });