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 096a81e commit 53c83ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "briefing-back",
"version": "1.1.6",
"version": "1.1.7",
"description": "",
"main": "index.js",
"scripts": {
"test": "jest",
"test": "node jest",
"dev": "nodemon --exec ts-node ./src/index.ts"
},
"keywords": [],
Expand Down
6 changes: 5 additions & 1 deletion src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ const defaultBriefingCreate : BriefingCreateDTO = {clientName: "test", descripti

describe("Endpoints API", () => {

beforeAll(async () =>{
await database.createTables();
})

let createdId : string | undefined = undefined;

let database : Database = new Database();
database.createTables();


it("Criar um novo briefing", async () => {
const response = await request(app)
Expand Down

0 comments on commit 53c83ad

Please sign in to comment.