mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 15:25:51 +01:00
test(server): ensure session info exists
This commit is contained in:
14
apps/server/src/routes/session_parser.spec.ts
Normal file
14
apps/server/src/routes/session_parser.spec.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { beforeAll, describe, expect, it } from "vitest";
|
||||
import supertest from "supertest";
|
||||
import type { Application } from "express";
|
||||
import dayjs from "dayjs";
|
||||
let app: Application;
|
||||
|
||||
describe("Session parser", () => {
|
||||
|
||||
beforeAll(async () => {
|
||||
const buildApp = (await import("../app.js")).default;
|
||||
app = await buildApp();
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user