blob: b44d999a30f28c8558cc9c487a4f48a04074767a (
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();
});
});
|