mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 13:01:56 +00:00
7d2a22c45a
Co-authored-by: Pablo F.G <pablo.fernandez@prowler.com> Co-authored-by: César Arroba <19954079+cesararroba@users.noreply.github.com>
31 lines
700 B
TypeScript
31 lines
700 B
TypeScript
import { afterEach, describe, expect, it, vi } from "vitest";
|
|
|
|
describe("siteConfig", () => {
|
|
afterEach(() => {
|
|
vi.unstubAllEnvs();
|
|
vi.resetModules();
|
|
});
|
|
|
|
it("names the open-source application Prowler Local Server", async () => {
|
|
// Given
|
|
vi.stubEnv("UI_CLOUD_ENABLED", "false");
|
|
|
|
// When
|
|
const { siteConfig } = await import("./site");
|
|
|
|
// Then
|
|
expect(siteConfig.name).toBe("Prowler Local Server");
|
|
});
|
|
|
|
it("keeps the Prowler Cloud name in Cloud", async () => {
|
|
// Given
|
|
vi.stubEnv("UI_CLOUD_ENABLED", "true");
|
|
|
|
// When
|
|
const { siteConfig } = await import("./site");
|
|
|
|
// Then
|
|
expect(siteConfig.name).toBe("Prowler Cloud");
|
|
});
|
|
});
|