Files
ServiceMap-Public/frontend/src/topologyNavigation.test.ts
T

21 lines
580 B
TypeScript

import { describe, expect, it } from "vitest";
import {
applicationLocation,
domainLocation,
topologyRoot,
topologyUp,
} from "./topologyNavigation";
describe("semantic topology navigation", () => {
it("returns components to their parent domain applications", () => {
expect(topologyUp(applicationLocation("domain-monitoring", "app-zabbix"))).toEqual(
domainLocation("domain-monitoring"),
);
});
it("returns a domain to the infrastructure root", () => {
expect(topologyUp(domainLocation("domain-monitoring"))).toEqual(topologyRoot());
});
});