CRICDatabase / searchable-image-database-nodejs

Backend in Node.js for CRIC Searchable Image Database
GNU Affero General Public License v3.0
1 stars 5 forks source link

POST /api/v1/descricoes is failing during test #160

Open rgaiacs opened 4 years ago

rgaiacs commented 4 years ago
POST /api/v1/descricoes › admin

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

    Expected: 201
    Received: 400

      76 |                     .then(
      77 |                         response => {
    > 78 |                             expect(response.statusCode).toBe(HttpStatus.CREATED);
         |                                                         ^
      79 |                             expect(
      80 |                                 response.body
      81 |                             ).toMatchObject(

      at src/__tests__/description.js:78:57

  ● POST /api/v1/descricoes (missing nome) › admin

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

    Expected: 201
    Received: 400

      143 |                     .then(
      144 |                         response => {
    > 145 |                             expect(response.statusCode).toBe(HttpStatus.CREATED);
          |                                                         ^
      146 |                             expect(
      147 |                                 response.body
      148 |                             ).toMatchObject(

      at src/__tests__/description.js:145:57