Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rgaiacs opened this issue Aug 13, 2020 · 0 comments
Open

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

rgaiacs opened this issue Aug 13, 2020 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@rgaiacs
Copy link
Contributor

rgaiacs commented Aug 13, 2020

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
@rgaiacs rgaiacs added the bug Something isn't working label Aug 13, 2020
@rgaiacs rgaiacs added this to the v2.6.0 milestone Aug 13, 2020
@rgaiacs rgaiacs modified the milestones: v2.6.0, v2.7.0 Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant