11 lines
298 B
TypeScript
11 lines
298 B
TypeScript
import { describe, expect, test } from "vitest";
|
|
import { parseServerEnv } from "./env";
|
|
|
|
describe("parseServerEnv", () => {
|
|
test("rejects a missing Immich API key", () => {
|
|
expect(() => parseServerEnv({ DATABASE_URL: "postgres://db/app" })).toThrow(
|
|
/IMMICH_API_KEY/,
|
|
);
|
|
});
|
|
});
|