Files
HiveGrid-Wireframes/03 Quellen und Referenzen/hivegrid-cloud/packages/config/src/kwp.test.ts
T

16 lines
470 B
TypeScript

import { describe, expect, it } from "vitest";
import { resolveKwpRuntimeEnv } from "./kwp.js";
describe("resolveKwpRuntimeEnv", () => {
it("normalizes the KWP pilot tenant id", () => {
expect(resolveKwpRuntimeEnv({ KWP_HIVEGRID_TENANT_ID: " tenant-1 " })).toEqual({
hiveGridTenantId: "tenant-1",
});
});
it("omits an empty KWP pilot tenant id", () => {
expect(resolveKwpRuntimeEnv({ KWP_HIVEGRID_TENANT_ID: " " })).toEqual({});
});
});