Skip to content

Commit

Permalink
Atualizando testes
Browse files Browse the repository at this point in the history
  • Loading branch information
710lucas committed Mar 12, 2024
1 parent a19bbe9 commit 9df4030
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "briefing-back",
"version": "1.1.4",
"version": "1.1.5",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@ import request from "supertest";

import app from ".";
import { BriefingCreateDTO } from "./dtos/BriefingCreateDTO";
import { Database } from "./PostgresFunctions";

const defaultBriefingCreate : BriefingCreateDTO = {clientName: "test", description: "test description"};

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")
Expand Down

0 comments on commit 9df4030

Please sign in to comment.