mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-23 03:44:15 +00:00
16 lines
446 B
TypeScript
16 lines
446 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
|
|
import { formatRegistryLabel } from "./labels";
|
|
|
|
describe("formatRegistryLabel", () => {
|
|
it("capitalizes plain identifiers and keeps any other value as written", () => {
|
|
// When
|
|
const labels = ["token", "service_account", "us-east-1", "OAuth2"].map(
|
|
formatRegistryLabel,
|
|
);
|
|
|
|
// Then
|
|
expect(labels).toEqual(["Token", "Service account", "us-east-1", "OAuth2"]);
|
|
});
|
|
});
|