aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/config.test.ts
blob: 6989635596e5734f9356bc7525145fe6b20cd848 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { describe, expect, test } from "vitest";
import { API_BASE_PATH, APP_NAME, BASE_PATH } from "./config";

describe("config", () => {
	test("BASE_PATH defaults to /", () => {
		expect(BASE_PATH).toBe("/");
	});

	test("API_BASE_PATH is based on BASE_PATH", () => {
		expect(API_BASE_PATH).toBe(`${BASE_PATH}api/`);
	});

	test("APP_NAME is defined", () => {
		expect(APP_NAME).toBeTruthy();
	});
});