Arquisoft / dede_es3b

Decentraliced Delivery or DeDe is a new, decentralized, and open-source delivery system. Based on the Solid Priciples for privacy and security.
https://webappdedeportes.herokuapp.com/
4 stars 6 forks source link

Error al ejecutar test backend #166

Closed PascualDaniel closed 2 years ago

PascualDaniel commented 2 years ago

No se porque pero los test de backend no pasan en main

PascualDaniel commented 2 years ago

` expect(received).toBe(expected) // Object.is equality

Expected: 200
Received: 400

  [72](https://github.com/Arquisoft/dede_es3b/runs/6096800731?check_suite_focus=true#step:5:72) |     it("Can get a user", async () => {
  [73](https://github.com/Arquisoft/dede_es3b/runs/6096800731?check_suite_focus=true#step:5:73) |         const response: Response = await request(app).get('/api/users/55555555E');
> [74](https://github.com/Arquisoft/dede_es3b/runs/6096800731?check_suite_focus=true#step:5:74) |         expect(response.statusCode).toBe(200);
     |                                     ^
  [75](https://github.com/Arquisoft/dede_es3b/runs/6096800731?check_suite_focus=true#step:5:75) |         expect(response.body).toEqual(
  [76](https://github.com/Arquisoft/dede_es3b/runs/6096800731?check_suite_focus=true#step:5:76) |         expect.objectContaining({
  [77](https://github.com/Arquisoft/dede_es3b/runs/6096800731?check_suite_focus=true#step:5:77) |             "user":[{`