test(etapi): port attachment content

This commit is contained in:
Elian Doran
2025-06-03 08:54:52 +03:00
parent d75e86789d
commit dddbb9d4d1
5 changed files with 66 additions and 88 deletions

View File

@@ -3,14 +3,12 @@ import { beforeAll, describe, expect, it } from "vitest";
import supertest from "supertest";
import { createNote, login } from "./utils.js";
import config from "../../src/services/config.js";
import { randomUUID } from "crypto";
let app: Application;
let token: string;
const USER = "etapi";
let createdNoteId: string;
let createdBranchId: string;
describe("etapi/note-content", () => {
beforeAll(async () => {
@@ -19,7 +17,7 @@ describe("etapi/note-content", () => {
app = await buildApp();
token = await login(app);
({ createdNoteId, createdBranchId } = await createNote(app, token));
createdNoteId = await createNote(app, token);
});
it("get content", async () => {