Skip to content

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

@rgaiacs

Description

@rgaiacs
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions