aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/config.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/app/config.test.ts')
-rw-r--r--frontend/app/config.test.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/frontend/app/config.test.ts b/frontend/app/config.test.ts
new file mode 100644
index 0000000..6989635
--- /dev/null
+++ b/frontend/app/config.test.ts
@@ -0,0 +1,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();
+ });
+});