From 9df4030b4458256559ce05d4fa9e5e0cc398bf26 Mon Sep 17 00:00:00 2001 From: 710lucas Date: Tue, 12 Mar 2024 13:50:10 -0300 Subject: [PATCH] Atualizando testes --- package.json | 2 +- src/test.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 31f25f6..2df376b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "briefing-back", - "version": "1.1.4", + "version": "1.1.5", "description": "", "main": "index.js", "scripts": { diff --git a/src/test.ts b/src/test.ts index aed8883..5bacee1 100644 --- a/src/test.ts +++ b/src/test.ts @@ -2,6 +2,7 @@ import request from "supertest"; import app from "."; import { BriefingCreateDTO } from "./dtos/BriefingCreateDTO"; +import { Database } from "./PostgresFunctions"; const defaultBriefingCreate : BriefingCreateDTO = {clientName: "test", description: "test description"}; @@ -9,6 +10,9 @@ describe("Endpoints API", () => { let createdId : string | undefined = undefined; + let database : Database = new Database(); + database.createTables(); + it("Criar um novo briefing", async () => { const response = await request(app) .post("/api/briefing")